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

HTML Basics Forum

View Course » View Exercise

1028 points
501ad6399d20f400020133e0_601091781
Submitted by
priyam
over 4 years ago

I dont know why I get an error with this code

I get the following error when I run the code below:

Oops, try again. Did you remember to
add all three extra sets of p tags?

I don't know what the mistake is

> <!DOCTYPE html> <html>    <head>
>       <title>Using Headings</title>
>   </head>     <body>
>         <h2>Second Level Heading</h2>
>         <p>Paragraph One</p>
>         <h4>Fourth Level Heading</h4>
>         <p>Paragraph Two</p>
>         <h6>The Least Important Heading</h6>
>         <p>Paragraph Three</p>    </body> </html>

10 votes

permalink

You need to have ALL heading tags in your code.

<!DOCTYPE html>
<html>
<head>
    <title>Headings & Paragraphs</title>
</head>
<body>
    <h1>Hello</h1>
        <p>WHOA!</p>
    <h2>Heading Two</h2>
        <p>Stuff</p>
    <h3>Director of Some Stuff</h3>
        <p>Yut</p>
    <h4>Heading Four</h4>
        <p>More Stuff</p>
    <h5>Lowly Assistant</h5>
        <p>Dude!</p>
    <h6>Heading Six</h6>
        <p>What?!</p>
</body>
</html>

You're missing heading tags and the paragraph tags that go underneath those heading tags.

2255 points
57bd121a8369662abf0002ea_201442639
Submitted by
TL
over 4 years ago

2 Comments

089f5e2e37ce7dc81953f5c792e05c94?s=140&d=retro lahonglam over 4 years ago

Thanks! But do it for what? for form of this?

43889d5f98859c47ebebe7fe5d2a3809?s=140&d=retro bnnbolt over 3 years ago

Thanks you


4 votes

permalink

i had the same error
but, i guess the point is..............Add three "more"

the answer of Lesson 3 can be
the answer of Lesson 2 + your answer (from Lesson 3)

1650 points
C72926abb939a492947cc8642e20c62f?s=140&d=retro
Submitted by
김구
over 4 years ago


0 votes

permalink

Keep in mind that each step is built from the previous step, by step 3, you should have more than three header tags and paragraph tags. Remember to submit after each step, so it will carry over to the next.

120 points
060ed80fae9acf963ac230a167721960?s=140&d=retro
Submitted by
David Blackwealth
over 4 years ago


0 votes

permalink

Cool!

844 points
5324ba6c80ff3338aa00dbc6_997940022
Submitted by
Waleed Ahmad
over 4 years ago


0 votes

permalink

right!

208 points
5138735a6f1f4e2305002725_49023802
Submitted by
DannyHong
over 4 years ago


0 votes

permalink

Yeah, so you're supposed to use headings 1 through 6 right.

127 points
53d2e1ea631fe90ac70001f3_56615449
Submitted by
David Espinoza
about 4 years ago