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

andres ramirez
Full Stack JavaScript Techdegree Student 3,951 Pointstitle tags on images - necessary, or not?
I am a Junior Web Developer, in the process of re-designing my company website, and I came across a doubt. I have already added alt="" tags to all images (not published yet), but I'm thinking about adding title="" tags as well to aid further in search engine results and to have the text show over image when hovered over with the mouse.
Are the title tags necessary after I have already added alt tags, or should I just do ONE or the OTHER?
Thanking in advance for your input! You may check out my website at www.websolutmiami.com
2 Answers

Jeff Lemay
14,268 PointsIt is best practice to use both and will slightly bump your seo. You definitely want alt tags, as those are needed for accessibility. If it's going to take you 10 hours to add title tags to all your images, it's probably not worth it. If it's going to take an hour, you should and will benefit in the long-run.

andres ramirez
Full Stack JavaScript Techdegree Student 3,951 PointsThank you!

Rich Donnellan
Treehouse Moderator 27,740 PointsEntirely up to you, as it's not a required attribute.
The resulting tooltip might be beneficial to some extent; it could summarize the image or show credits.
ref: title β Mozilla Developer Network (MDN)
βRich

andres ramirez
Full Stack JavaScript Techdegree Student 3,951 PointsThanks for your help!
Joshua Briley
Courses Plus Student 24,645 PointsJoshua Briley
Courses Plus Student 24,645 PointsI don't use them. I don't believe they are "necessary" in terms of W3C validation, if that's what you mean. I'm sure there is much debate over their relevance in search engine optimization.