The html tags should wrap around one h1 element

The html tags should wrap around one h1 element
0.0 0

#1

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


#2

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


#3

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:


#4

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


#5

You don’t put P tags in H1 tags.

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