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 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.