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


#1


https://www.codecademy.com/courses/web-beginner-en-LceTK/0/3?curriculum_id=50579fb998b470000202dc8b


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>


"Mistake" in the HTML-Course - wrong skeleton?!
#2

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


#3

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


#4

Your closing </head> tag shouldn't close after the body, but before. put it right before the opening <body> tag, and right after the `


#5

Thank you all! Appreciated the help!