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

HTML Basics Forum

View Course » View Exercise

170 points
547e09ee7c82ca65a6003949_649326727
Submitted by
Username134
almost 3 years ago

html basics 8/14 says Did you remember to add all three extra sets of <p></p> tags?

<!DOCTYPE html>

<head>
    <title>
        Headings and Paragraphs
    </title>

</head>
<body>
    <h2>
    Hello
    </h2>
    <p>
    Howdy
    </p>
    <h4>
    mom
    </h4>
    <p>
    father
    </p>
    <h6>
    stefan
    </h6>
    <p>
    elena
    </p>


</body>

2 votes

permalink

you can never nest paragraph tags inside header tags
<h1><p>this is wrong</p></h1>
and vice versa:
<p><h1>this is also wrong</h1></p>

the right way:
<h1>nesting the right way</h1>
<p>this is how the nesting should be</p>

2935 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
almost 3 years ago


1 vote

permalink

Username134, the instructions asked to "Add three more headings to the code, making use of h2, h4 and h6." There should have already been heading code lines for h1, h3, and h5 and directly beneath each a paragraph(p). If they were not already there, then add them. Then had three more headings: h2, h4, and h6, with a paragraph for each. So there would be a total of six headings and six paragraphs

656 points
Aa7c203501792b9094919e5d92f62135?s=140&d=retro
Submitted by
Shelly191
over 2 years ago

2 Comments

1fc84de65cac69298a2b987f4db50bda?s=140&d=retro mfcity over 2 years ago

This is the answer I needed, thanks. For some reason the previous lines of h1, h3 and h5 needed to be redone.

0a143a4501945f09e71938fad4f93f28?s=140&d=retro James over 2 years ago

yeah on this on he forgot to put h1 h3 and h5


0 votes

permalink

<!DOCTYPE html>

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

</head>
<body>
    <h1>Meghan is the greatest </h1>
    <p> She is really the most awesome person in the world. </p>
    <h3>
    <p> Soon she will learn to code like a champ. </p> </h3>
    <h5> 
    <p> Henry wishes he could be this cool. </p>
    </h5> 
    <h2><p> Once upon a time there was a tiger. </p></h2>
    <h4><p> this tiger was very strong </p></h4>
    <h6><p> yet he could not roar. </p></h6>
</body>

629 points
Picture
Submitted by
shanley45
almost 3 years ago

2 Comments

5b1bc7791066db2da068d2a0c40da058?s=140&d=retro Tayyab Khan almost 3 years ago

Thanks! shanley45

593d545c83696644420003b7_64554016 stetim94 almost 3 years ago

uhm.. guys? the nesting is wrong, please don't do this. in microsoft office word you use paragraph and seperately and not at the same time, why would do that?