Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Links Websites: Part 1

Jack Ferguson
Jack Ferguson
1,018 Points

Title of Anotherpage.html

when you create anotherpage.html, the title tag still says "my page" but the title appears as anotherpage. You are also able to successfully link using the id another_page even though this value is not saved in the title tag. How is this possible?

1 Answer

Damien Watson
Damien Watson
27,419 Points

Hi Jack,

The 'title' is used to label the browser tab and in as a reference for bookmarks, not for navigation. The initial 'tab' you may be referring to is actually in the editor and is the 'filename' not 'title'. When he views in the browser you can see the 'title' for both pages is still 'My Page' because he didn't change the title for another_page.

When you create a link to a page, you link to the actual filename, not the 'title'.