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.


Eric Nevitt
Eric Nevitt
4,914 Points

Image caption hover

I am looking for a tutorial where I can add an image caption hover to my site. I have found some, but they either aren't what I'm looking for or have too many options. I'm looking for just a small bar with the name of the the website when you hover over the picture.

1 Answer

Eric Nevitt

You can use title attribute in image element to get name of the website when user hovers over the image. Technically you will have mention the name of your website as a value to title attribute. when users hover over image it will display the value of the title attribute.

Something like this

<img src="image.jpg" title="www.example.com" alt="iage desc">

I hope i answer your question