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

General Discussion

Travis Lima
Travis Lima
15,877 Points

Caption vs ALT

Hey Gang,

I noticed in the beginning HTML tutorials (the build a designer website) Nick starts an image gallery and leaves the ALT tag blank and instead puts a caption. Is this because it will be redundant to have an ALT tag and Caption ? Did I miss something ?

3 Answers

Lush Sleutsky
Lush Sleutsky
14,044 Points

An "alt" tag is something that will not be visible on the actual page, but rather, it's for screen readers and things of that nature, whereas "caption" will actually be visible on the page. The "Alt" attribute is an accessibility-based attribute, if you will. Hope that helps...

Travis Lima
Travis Lima
15,877 Points

wow that was quick ! Thanks for the reply, thats what I thought too but yet Nick left it out, perhaps he will fill them in, in a later video ...

Lush Sleutsky True. I'd like to add a bit more to what @Lush Sleutsky said. alt attribute is also used for search engines. When people use google image search Google search engine looks at alt attribute to return the result. So, It is very important attribute to fill it in with meaningful description.