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

HTML Basics Forum

View Course » View Exercise

93 points
52d8211a52f8632c3b000444_708167164
Submitted by
Omar Elaida Chaffey
over 3 years ago

I have a problem on HTML Basics-Lesson 8 (Using every heading)

I can't know what am I doing wrong:

<!DOCTYPE html>

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

</head>
<body>
    <h1>
       Hello World
    </h1>

    <p1>
        Hello World
    </p1>

    <h2>
        Hello World
    </h2>

    <p2>
        Hello World
    </p2>

    <h3>
        Hello World
    </h3>

    <p3>
        Hello World
    </p3>

    <h4>
        Hello World
    </h4>

    <p4>
        Hello World
    </p4>

    <h5>
        Hello World
    </h5>

    <p5>
        Hello World
    </p5>

    <h6>
        Hello World
    </h6>

    <p6>
        Hello World
    </p6>

</body>

2 votes

permalink

only the headers have number (h1, h2, h3,h4,h5,h6) because of there different size. (h1 is large, h6 is small)
paragraph don't have numbers. just:
<p></p>
p1,p2..p6 do not exist.

2935 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
over 3 years ago


1 vote

permalink

Give mine a shot.

<!DOCTYPE html>
<html>

<head>
    <title>
        How to take care of your dog.
    </title>

</head>
<body>
    <h1>Dog tip 1.</h1>
    <p>Always feed your dog 2 to 3 times a day.</p>
    <h2>Dog tip 2.</h2>
    <p>Some dogs need lots of play time.</p>
    <h3>Dog tip 3.</h3>
    <p>Brush your dog weekly.</p>
    <h4>Dog tip 4.</h4>
    <p>Buy your dog some toys to play with</p>
    <h5>Dog tip 5.</h5>
    <p>Give your dog a bath every 3 weeks.</p>
    <h6>Dog tip 6.</h6>
    <p>Give your dog lots of love.</p>
</body>

831 points
52d433a252f863e668007ac1_836025084
Submitted by
roronoazoro16
over 3 years ago

2 Comments

Ee960980adb6924c341452754787d564?s=140&d=retro Eric Shively over 3 years ago

You need to close your html document with , that is what you are missing.

52d433a252f863e668007ac1_836025084 roronoazoro16 over 3 years ago

Ok