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 trialKasper Peulen
921 PointsWhat is the use for the title attribute? Beside the use as shown in this video.
What is the use for the title attribute? Beside the use as shown in this video.
So I can use it in css with attr(), but is the only use of title ?
2 Answers
Jaime Gonzalez
5,186 PointsThere's also another use case for disabled people where a special software can read them titles or alt descriptions, for example, in order to provide accessibility to the webpage.
Also I think it has to do something with a better SEO.
Check W3C Accessibility for more info.
Robert Richey
Courses Plus Student 16,352 PointsHi Kasper,
The main use of title, that I'm aware of, is as a tool-tip. When hovered over, the element will display a message with the title's value. This is useful when a Web page uses icons with symbols, to help explain the purpose of the icon.
Hope this helps,
Cheers