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

0 points
Submitted by Jeanne Byrnes Funk
about 10 years

10/21 I can't get the DOCTYPE tag to work.

I’ve tried the DOCTYPE tag everywhere. This placement seems to be according to the example, but the error message says: Oops, try again. Add <!DOCTYPE html> on the first line before everything else. I tried it at the VERY TOP, before the comment on #1, but the error message says: Oops, try again. Do not replace your “<head>“ tag. You just need add

Answer 5336cbc07c82caea0100122d

3 votes

Permalink

Hi. I had the same problem and i just deleted the comment on the first two lines. Then add the doctype tag to the first line\

points
Submitted by Habos97
almost 10 years

2 comments

Judy almost 10 years

I’m surprised that you had a comment on your first line Habos! Back in 5/21 http://www.codecademy.com/courses/web-beginner-en-3pc6w/1/1, that should have been pushed the comment to line 2 at the very least. Each of the next few lessons would have pushed it down further until eventually it ends up in your body tag where it belongs.

Kingdura almost 10 years

@Habos your idea did work for me. Thanks

Answer 53322c58282ae325ab000db4

1 vote

Permalink

Your line 1 and line 2 must be these two lines:

<!DOCTYPE html>
<head>
points
Submitted by Judy
about 10 years

5 comments

Ravi Shekhar about 10 years

Thanks

Judy about 10 years

You’re welcome Ravi.

Krista Brashear about 10 years

tried this; doesnt work?

Judy about 10 years

Krista, really? Are you sure you don’t have ANYTHING else on lines 1 or 2 – like a comment maybe? Copy/paste all of your code after clicking on the green “Ask a question” button so we can have a look!

Phoebe Wallington almost 10 years

That worked thanks!