Header not working


#1

I don't know why my code isn't working. I've included the links below. I removed the first "<" so that the code would actually display. Please help..

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

Error message says "Oops, try again. Make sure you put in h1> and /h1> tags between your body> and /body> tags. "


<!DOCTYPE html>
<html>
    <head>
        <title>
            <body> <h1> "Anthony" "</h1>
                
            </body>
        </title>
    </head>
</html>


#2

HI your code should have that structure

<!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>
    <body>
        <!--here put your tag h1, h2, h3, p..-->
    </body>
</html>

#3




    </head>
    <body> <h1> "Anthony!" "</h1>"</body>


#4

The code I just posted is what I ended up getting to work. Thank you. What was I doing wrong?


#5

just look at your code

<!DOCTYPE html>
<html>
    <head>
        <title>
            <body> <h1> "Anthony" "</h1>
                
            </body>
        </title>
    </head>
</html>

and here how it should be

<!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>
    <body>
        <!--here put your tag h1, h2, h3, p..-->
    </body>
</html>

like you can see you nester the <body></body> tag in the <title></title> tag but the body tag should be inside the <htlm></html> tag like the <head></head>


#6

thanks for your help.