1 | 2 | 3 | 4 | 5 | 6 | Current Level: 7 | 8 | 9
Learn how to create additional HTML files and link them from your homepage (index.html
) so they are accessible on your published GitHub Pages website.
You should already have a working index.html
file published using GitHub Pages.
Create Two New HTML Files
about.html
and add some basic content:<h1>About Page</h1>
<p>This is the About page of my website.</p>
contact.html
with your own content.Link to the New Pages from index.html
index.html
file in the web editor (click the pencil icon).<body>
:<nav>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
</nav>
Commit Your Changes
Test Your GitHub Pages Site
about.html
and contact.html
load correctly.