Why doesnt my header <h1> </h1> work


#1

No matter what I do nothing happens. Its been two days now and it still wont work


#2

Would you mind posting your code so that I can see what's wrong?


#3

Hi,

Below is my code and it is not displaying the

Kyle

as instructed.
Clearly I am doing something wrong but not sure what.

Please can you assist?



Head


#4

@kylelmkem_co_za and @bencard, you need to highlight all of your code in the editor, then click the </> button in the formatting bar so we can see it.


#5

I've got the same problem. Such a simple task, and it's got me stumped.

The instruction is:

Create an <h1> tag inside your body tags. Between your opening <h1> and closing </h1> tags, type your name for all to see!

This is my code:

<!DOCTYPE html>
  <html>
    <head>
      <title>
        <body>
          <h1>Steve Shinners</h1>
        </body>
      </title>
    </head>
  </html>

I'm getting this error message:

Oops, try again. Make sure you put in <h1></h1> tags between your <body></body> tags.

I think I've been staring at it too long to work out. Can anyone please help? Thanks


#6

This code works









#7









#8








This worked for me


#9

Hi chipace72456, do you mean that the code I posted works for you, or have you posted code that works, that I can't see?

Thanks for clarifying.


#10

has anyone been able to fine a solution for this yet?


#11

Hey guys!

Here's my working code:

<!DOCTYPE html>
<html>
    <head>
        <title>Pig party</title>
    </head>
    <body>

     <h1>Headers are awesome</h1>

    </body>
</html>

And if you ever want to post code, but don't know how, visit my post on how to make code visible, and don't forget to share the topic!


#12

Your </title> and </head> are in the wrong place, they should be positioned above the body, like so:

<!DOCTYPE html>
  <html>
    <head>
      <title>Title</title>
    </head>
    <body>

#13

Thanks! I knew it would be obvious when someone pointed out the solution to me.


#14

No problem, I'm happy to help!