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

What's wrong of my code

I am a beginner of HTML. Could you please tell me what's wrong of my codes as follow?

<!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="intro>
  <h2>Cupcake of the Week</h2>
  <p>This Week's featrued cupcaks is the <a href="#">Avocado Chocalate Cupcake</a> Its strange combo of flavors will kick your taste buds into fiesta mode!
  </p>
  <img src="img/featured-cupcake.jpg"alt="Avocado Chocalate Cupcake">
    </div>
  </body>
</html>

3 Answers

James Barnett
James Barnett
39,199 Points

You forgot your closing quote mark on your id attribute for the div with the intro id.

Gareth Redfern
Gareth Redfern
36,217 Points

Is that all you have in your file? Could you post a link to the complete file if not?

I didn't put it in a file. Just type them in Treehouse. Now I am going to try in Sublime. Thanks