Skip to content
← Back to Community
HTML
Profile icon
PythonCoder100

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

Voters
Profile icon
joshuadeac
Profile icon
dodo135
Profile icon
PythonCoder100
Comments
hotnewtop
Profile icon
ArchieMaclean

Click the add file button:

This file cannot be displayed: https://storage.googleapis.com/replit/images/1552425746912_0e5d004a85aae04ac61e252009a43354.pn

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 :)

Profile icon
PythonCoder100
Profile icon
Zeune

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.

Profile icon
PythonCoder100

@Zeune Thanks!

Profile icon
PythonCoder100

Please help!