3. It's Better With A Header. It won't accept my code, what have I done wrong?

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/web-beginner-en-LceTK/0/3?curriculum_id=50579fb998b470000202dc8b

<In what way does your code behave incorrectly? Include ALL error messages.>
This is my error message:
Oops, try again. Make sure you put in <h1></h1> tags between your <body></body> tags.



<!DOCTYPE html>
<html>
    <head>
        <title>
            <body>
                <h1>John</h1>
            </body>
        </title>
    </head>
</html>


your head should (head=<head></head>, heading=h1 till h6)) should be closed before you start your body, and your title should be inside your head, if you don’t remember the default document structure, you might want to take a peek at some of the lessons in html basic 1

1 Like

Hello @lavamon11,
check your code :wink:

You got your entire code in the head.
Split it up - how it should be:


<!DOCTYPE html>
<html>
    <head>
        <!-- your meta tags here -->
    </head>
    <body>
         <!-- rest of your code here, e.g. the <h1></h1> tag -->
     </body>
</html>

Hope I could help you :slight_smile:
If you got further questions, feel free to get in touch with me :smiley:
Make sure to mark my post as solution, so others which face the same
issue will be able to take it as a reference :wink:
Greez, 0xB4DC0DED

1 Like

Your closing </head> tag shouldn’t close after the body, but before. put it right before the opening <body> tag, and right after the ` tag. Hope this helped :slight_smile: keep up the good work.

1 Like

Thank you all! Appreciated the help!