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 trialLacey Ventres
182 PointsHelp 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
Jennifer Rai
Courses Plus Student 13,164 PointsHi 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">
Pete Yurchision
1,402 Pointsyep, what Jennifer said, she beat me to it.
Lacey Ventres
182 PointsLacey Ventres
182 PointsOK thanks I kept trying to do:
<img src="img/frog,jpg" > <alt="Mike the Frog> so it all goes in the same <>