HTML
mroumani (6)

I am asking my students to create a multipage website. However, when they add a file and name it page2.html and run it, the code doesn't appear. Only the index.html code appears.
If we try including an internal link to the second page, it will run correctly.
How do we get it so that if we have the code for page 2 is displayed and we click run, we can see it work?

You are viewing a single comment. View All
LynnOng (26)

Use an anchor <a href = "page2.html"> Click Here </a>
Or use Javascript

<script> window.location = "page2.html"; </script>

Make sure both HTML files are in the same folder.