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 HTML Forms HTML Mastery

Laksakan Krishnapillai
PLUS
Laksakan Krishnapillai
Courses Plus Student 1,839 Points

Add a second level heading inside that div containing the text "Shopping List". No spaces around the text, please.

Question asks ad a second level heading... inside div tag, What tags cans be used for the text? Confused about the question.

4 Answers

A second level heading is h2

<div>
      <h2>Shopping List</h2>
 </div>

Laksakan Krishnapillai. You can specify them in HTML by using <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>

So second level heading element is <h2> You can create by opening and closing <h2>. Check the code below on how to create second level heading element in HTML.

<!-- Creating second level heading element-->

<h2></h2>
  1. Next they are asking you to add text. Text is "Shopping List" with no space around. Meaning no space in front and back of "Shopping List" text. Let me show you what is that.

Example of space around

<!-- Space in front of text-->

<h2> Shopping List</h2>

<!-- Space back of text-->

<h2>Shopping List </h2>

<!-- Space around text(both front-side and back-side)-->

<h2> Shopping List </h2>

Now you know what is space around text.

So you have create second level heading element with text "Shopping List" with no space around.

<h2>Shopping List</h2>

I hope it helps.

The h2 tag is second level heading. Place the text "Shopping List" inside of that tag.