Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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'.