The html tags should wrap around one h1 element

Tell us what’s happening:

Your code so far


<!DOCTYPE html>
<html>
    <head>
        <title>this is sample</title>
    </head>
    <body>
        <h1><p>this is tag</p></h1>
    </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/declare-the-doctype-of-an-html-document

what’s wrong with my code, it’s not working…

You code is actually a little advanced for this problem.

<!DOCTYPE html>
<html>
    // Your h1 element should be the only thing in here
</html>

Also the syntax for a h1 element is:

<h1>This is a h1 element</h1>

Hope this helps :slight_smile:

Go here: https://validator.w3.org/#validate_by_input
Paste your code into it.
Read the Suggestions.

You don’t put P tags in H1 tags.

Do exactly what the problem asks you to do, no more.

<!DOCTYPE html>

<html><h1>

    <head>head tag</head>

 <h1>h1 tags</h1>

 <body><h1>h1 element</h1></body>

 <footer><h1>h1 element</h1></footer>

 </h1>

</html>