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

Inside of the div you created, make an h2 that reads 'Cupcake of the Week'.

Can someone help me? All the time I am getting error in this challenge. My code is

<div id="featured-cupcake">
<h2>'Cupcake of the Week'.</h2>
</div>.

And the error is "Bummer! The text inside of the 'h2' tag should read 'Cupcake of the Week'.''

Stone Preston
Stone Preston
42,016 Points

code does not show up in the forum unless its formatted using markdown. There is a markdown cheatsheet in the bottom right of the comment/post text box. You can also see this post for instructions on formatting your code for the forum. Ive formatted it for you so it will show up.

1 Answer

Stone Preston
Stone Preston
42,016 Points

remove any quotes from the h2 as well as the period

<div id="featured-cupcake">
      <h2>Cupcake of the Week</h2>
</div>

Whenever a challenge asks for some text to be placed inside a tag, its generally safe to assume it wants it without quotes.