Ask coding questions

← Back to all posts
New Pages in HTML
MrsBhavsar (0)

I am a teacher. I am teaching students virtually how to create a web page. When we make new pages nothing works. We have to go back to the index page and paste our work there for it to preview. Are we doing something wrong? Please see page1.html link.

Answered by RYANTADIPARTHI (5835) [earned 5 cycles]
View Answer

if you mean you want to go to other pages in the webpage, put links.

<a href="page1.html">click to go to page1</a>

like that. put that in your index.html
It should work.

MrsBhavsar (0)

@RYANTADIPARTHI Thanks. I meant that the page1.html appears blank when I preview it. The title doesn't work nor does the text on the page.


@MrsBhavsar yes, when you go to it, it should work. Try that link, and preview it again.

darkdarcool (65)

Yes, @RYANTADIPARTHI is right, if you create a new file and put an href it should work. Here is a live example:
click for live example

MrsBhavsar (0)

@RYANTADIPARTHI Yes, of course. Please let me know if I did it correctly.


@MrsBhavsar yes, you did it correctly. Thanks!