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

robertmills2
Courses Plus Student 14,965 PointsHow to have the title that shows up in the browser tab change with the page on the site?
I am looking at the supro guitar site. I noticed that as I move in and out of the site the tile changes based on what I am looking at. I am sure this has been going on underneath my radar, but today I asked how does this happen.
2 Answers

Steven Parker
242,296 PointsIn the <head>
section of the HTML document, you can put a <title>
element. Most browsers will display the contents of that element on the tab.

Matthew Lawson
7,283 PointsHi Robert,
Steven is absolutely right, but just to further expand on that here's an example of the code so you can visualise it a little better.
<html>
<head>
<title>Put your site title here</title>
</head>
</html>
Hope this helps, happy learning!
robertmills2
Courses Plus Student 14,965 Pointsrobertmills2
Courses Plus Student 14,965 PointsI understand, and have been aware. I did not ask the right question or take time to think about it. I really did not pay much attention that the index inherits the title from the head but the other pages within a site are labeled in the browser tab based on the file name. My question was a little off. However, I do appreciate the fast response.