Web pages structure | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Web pages structure

I now to some extent can code in html and css and I’ve been practicing some javascript . My Question are: A- where does the code actually go or is written in real life ? Like outside of code playgrounds . B- after writing the code for the homepage where do you write the code for the other pages that you click from the home page (like the news or contact ) . Here on the playground of sololearn . Thank you in advance :)

2nd Sep 2023, 5:34 PM
Ola
2 Answers
+ 5
Outside of Sololearn, it is very much the same as Samir Krasnic mentioned. You have an index.html to start, which is normally the homepage. You may have other files depending on your webpage/site's requirements. Those files will be uploaded and stored on a hosting platform. For example, here's an image of the webpage contents:  https://chriscoder.neocities.org/images/Files.png Whenever someone visits the homepage, like in this example: https://chriscoder.neocities.org The index.html is the page you will see. If I would like to include more pages on the website, I could name a page something like "about.html" and provide a link tag on the index.html page that directs the user to the about page.
2nd Sep 2023, 10:31 PM
Chris Coder
Chris Coder - avatar
+ 2
Here on sololearn you have only 3 files. index.html index.css index.js You can only manipulate those files. Sololearn is great for learning,challenging other players and practicing what you learned(in limited enviroment).If you want to practice everything you are learning on sololearn i sugest you to donwload Visual Studio Code and practice in real enviroment.You can add unlimited number of files and run them imidiately in web browser.
2nd Sep 2023, 8:14 PM
Samir Krasnic
Samir Krasnic - avatar