Ask coding questions

← Back to all posts
PythonCoder100 (7)

In HTML, how do you add a subpage to your website?

ArchieMaclean (795)

Click the add file button:

And name it about.html or similar. Then you can write some HTML in it.
Then in your index.html, you can add

<a href="about.html">About</a>

to add a link to that page.
Please upvote if this helps :)

Zeune (34)

Make your other html page that you want to refer to. Then, use this code

<a href ="test.html">Hello World</a>

replace "test.html" with your file and then you can also replace "Hello World" with the link text.