Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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