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

What is the solution to Challenge 5 of 5, I keep getting it wrong

Stage 2 Text Editors and HTML, in challenge Task 5 of 5, I seem to be getting it wrong. It says Add the alternate text "Avacado Chocolate Cupcake" to the image tag you just added. My answer is <img src="img/featured-cupcake.jpg" alt="Avacado Chocolate Cupcake"> but is still says "Bummer! Your alternate text isn't quite right, check it again." What am I doing wrong?

Hi Robert,

Can you post the code you have so far?

See this for how to post code: https://teamtreehouse.com/forum/posting-code-to-the-forum

6 Answers

chris salvi
chris salvi
7,584 Points
<img src='#' alt="Avacado Chocolate Cupcake">

Alt text is a way for readers and search engines to capture what is happening. The # sign idicates the url for the link.

This is my answer to challenge 5 of 5, stage 2:

<img src="img/featured-cupcake.jpg" alt="Avacado Chocolate Cupcake">

I keep getting the response that it is incorrect and hints that the something is wrong with the alt syntax. What could be wrong with my code.

chris salvi
chris salvi
7,584 Points

robert it'd be best if you copy and paste and follow the guidelines for pasting html in the forum so we can have a look.

Kate Hoferkamp
Kate Hoferkamp
5,205 Points

Did you make sure the text is exact? Here is the correct html:

<!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Smells Like Bakin' Cupcake Company</title>
  </head>
  <body>
    <div id="featured-cupcake">
      <h2>Cupcake of the Week</h2>
      <img src="img/featured-cupcake.jpg" alt="Avocado Chocolate Cupcake">
    </div>
  </body>
</html>

Let me know if you need any help understanding it or have any other questions. Hope this helps!

Here is my Code which i have entered in challenge 5 and it says is still incorrect:

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head> <body> <div id=featured-cupcake> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg" alt="Avacado Chocolate Cupcake"> </div> </body> </html>

We can't see your html. Please see the link I posted.

<img src="img/featured-cupcake.jpg" alt="Avocado Chocolate Cupcake">

and it looks exaclty like kates where the alt="Avacado Chocolate Cupcake"> which looks correct but then why does it say its still incorrect, I got 4 out of the 5 correct so far. What could be my mistake?

Kate Hoferkamp
Kate Hoferkamp
5,205 Points

It's Avocado not Avacado.

You have a typo in avocado. Is that in your code or just on here?

Thank you guys for helping me out. I had the wrong spelling of Avocado, lol. Damn!

Kate Hoferkamp
Kate Hoferkamp
5,205 Points

Haha it's always something minor like that! As long as you had the idea down, that's most important!

Glad we could help =]