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

HTML Build a Simple Website Text Editors and HTML Creating Structure

Help with adding alt

I have tried to add an alt to an image and do not know why I keep getting it wrong. I dont understand what it is I'm doing wrong, I have tried many diff ways

2 Answers

Hi Lacey,

Can you please paste the code you are trying to use? This is the basic structure for adding an alt tag to an image:

<img src="frog.jpg" alt="Mike the Frog">

OK thanks I kept trying to do:

<img src="img/frog,jpg" > <alt="Mike the Frog> so it all goes in the same <>

yep, what Jennifer said, she beat me to it.