This forum is now read-only. Please use our new forums at discuss.codecademy.com.

HTML Basics Forum

View Course » View Exercise

49 points
Picture
Submitted by
Augie Bowles
almost 3 years ago

8/14 Oops, try again. Did you remember to add all three extra sets of <p></p> tags?

i cant figure out what is wrong with my code please help.

<!DOCTYPE html>

<head>
    <title>
        Headings & Paragraphs
    </title>

</head>
<body>
<h1>
    Heading
</h1>
<h2>
    <p>
        This is a paragraph.
    </p>
</h2>
<h3>
    <p>
        This is also a paragraph
    </p>
</h3>
<h4>
    <p>
        Fudge
    </p>
</h4>
<h5>
    <p>
        Paragraph
    </p>
</h5>
<h6>
    <p>
        NO MAS
   </p>
</h6>

</body>

0 votes

permalink

Whats wrong in that code?? Please Help

<!DOCTYPE html>

<head>
    <title>
        Headings & Paragraphs
    </title>

</head>
<body>
    <h1>head 1</h1>
    <p>Para 1</p>
    <h2>head 2</h2>
    <p>Para 2</p>
    <h4>head 4</h4>
    <p>Para 4</p>
    <h6>head 6</h6>
    <p>Para 6</p>

</body>

701 points
55663745d3292fc7210006c4_513222289
Submitted by
Vishish
over 2 years ago

2 Comments

5671826195e378c47d000782_659060817 stetim94 over 2 years ago

you should add all 6 headers, and for each add a paragraph. bit vague in the instructions. in the beginning there is mentioned this: we should make use of all six.

55663745d3292fc7210006c4_513222289 Vishish over 2 years ago

Thank you so much :)


-1 votes

permalink

header tags (h1,h2..h6) can never be never nested inside paragraph tags, and neither can header tags be nested inside paragraph tags. first you need a header:
<h1>header 1</h1>
followed by a paragraph:
<p>I am a paragraph.</p>

now do this for all 6 your headers.

2410 points
5671826195e378c47d000782_659060817
Submitted by
stetim94
almost 3 years ago

1 Comment

6e3e37bf04a046ad79ec74f66c498571?s=140&d=retro BenMcCue about 2 years ago

what color is the dress </H3