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

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