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 Build a Simple Website Text Editors and HTML Creating Structure

Help-Everything looks good but it tells me its wrong

Inside of the div you created, make an h2 that reads 'Cupcake of the Week'. Bummer We're looking for an 'h2' tag inside of the 'div' with the id 'featured-cupcake'. What is wrong with my h2

<div id="featured-cupcake"
    <h2>Cupcake of the Week</h2>
    <p>This week's featured cupcake is the <a href="#"> Avocado Chocolate Cupcake </a>. Its strange combo of flavors will kick your taste buds in to fiesta mode!</p>
<img src="img/featured-cupcake.jpg" alt="Avocado Chocolate Cupcake">
</div>

5 Answers

Wade Christensen
STAFF
Wade Christensen
Treehouse Teacher

You were just missing the bracket needed to close the tag at the end of the id. It should look like this:

<div id="featured-cupcake">
    <h2>Cupcake of the Week</h2>
    <p>This week's featured cupcake is the <a href="#"> Avocado Chocolate Cupcake </a>. Its strange combo of flavors will kick your taste buds in to fiesta mode!</p>
<img src="img/featured-cupcake.jpg" alt="Avocado Chocolate Cupcake">
</div>

Notice the > at the end of the id="featured-cupcake"

Wade Christensen
STAFF
Wade Christensen
Treehouse Teacher

Make sure you have a > everywhere it should be. You properly closed the <div>, but you're missing a > where you open the <div

It looks like you're missing a right angle bracket on the opening div.

I do that but when i load it in safari it does this id="Intro"> I changed it to this below

<div> id="featured-cupcake" <h2>Cupcake of the Week</h2> <p>This week's featured cupcake is the <a href="#"> Avocado Chocolate Cupcake </a>. Its strange combo of flavors will kick your taste buds in to fiesta mode!</p> <img src="img/featured-cupcake.jpg" alt="Avocado Chocolate Cupcake"> </div>

Thankss so much it worked