This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Clara Tirkey
about 10 years

10/21 <!DOCTYPE html> it's not working! help! what's wrong in this?

<!DOCTYPE html>
<head>
<style>
body{
    text-align: center;
} 
</style>
</head>
<body>
<h1>Clara tirkey</h1>
<p> Hello! my name is Clara and i am here to learn html because it really interests me.I love to sing, write(i want to be an author) and i love walking over mysterious places. What can i say they intruige me. I love wandering in a forests- all those who wander are not always lost!</p>
<input type='email' placeholder='Email'>
<input type='submit'>
</body>

Answer 530a543f9c4e9d3e67000050

20 votes

Permalink

I was having the same problem. Take out the two lines in gray in the top of the page.

Hope it works for you.

points
Submitted by Nev32One
about 10 years

11 comments

Jacob Russell about 10 years

Had the same issue. This worked for me.

Nev32One about 10 years

By the way, not my solution… just saw on the Q&A section…

Vivid Sam about 10 years

same problem

fellygoh about 10 years

i have the same problem too. can’t continue.

Troy Marlin about 10 years

yes taking out the first two lines worked for me to

erji almost 10 years

thanks ,it works!

Deepthi Kailash over 9 years

Omg thanks so much!

Frambashk over 9 years

Thx it works really well!!!!

Adam Granville over 9 years

thx man

bobbymagee about 9 years

Many thanks.Worked a treat.

Tahsin Tabassum almost 9 years

so simple and so tricky at the same time but thanks ! :) (Y)

Answer 5333b3dd9c4e9df9eb00153d

5 votes

Permalink

   <!DOCTYPE html>
<head></head>
<style>
body {
    text-align:center;
}
</style>
<body>
<h1>Fatemeh</h1>
<p>Hi! I am learning how to make my own webpage!I really like painting and travel with family,and I love ice-cream! </p>
<input type="email" placeholder="Email">
<input type="submit">
</body>

hi guys,you should notice that put your head tags before your style tags and after the !doctype html.

points
Submitted by Farlingo
about 10 years

1 comments

Michael Rizzo over 9 years

Taking out the first two lines works. This will solve the problem

Answer 53c4135052f863c5ce0018e6

5 votes

Permalink

You need to remove the comment at the top of the page. It worked for me.

points
Submitted by mathrocks000
over 9 years

1 comments

Ivaylo Valchev over 9 years

That’s worked.