This forum is now read-only. Please use our new forums at discuss.codecademy.com.

About You Forum

View Course » View Exercise

147 points
Cd3879c3b34505191041d93d49b39a6e?s=140&d=retro
Submitted by
Jeanne Byrnes Funk
over 3 years ago

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 <!DOCTYPE html> before it.

<!-- I'm a comment. You won't actually see me on the web page.
     You should write your header in the line below me! -->
**<!DOCTYPE html>**
<head>
     <style>
     h1 {
         text-align: center;
     }
     p {
        text-align: center;
     }
     body {
        text-align: center;
     </style>
     </head>
<body>
 <h1>Jeanne B. Funk</h1>
 <p> I'm a Writer/Writing Coach and I love learning new things and exploring new ideas.</p>
 <input type="email"placeholder= "Email"
 <input type="submit
 </body>

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\

82 points
Dde80d38d418fbcbe442d42cf599cc7c?s=140&d=retro
Submitted by
Habos97
over 3 years ago

2 Comments

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

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.

092fcc7939f82c46361277db93e92a95?s=140&d=retro Kingdura over 3 years ago

@Habos your idea did work for me. Thanks


1 vote

permalink

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

<!DOCTYPE html>
<head>

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago

5 Comments

5332bf72548c35865a00266f_372259560 Ravi Shekhar Singh over 3 years ago

Thanks

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

You're welcome Ravi.

78707c5a42feee89acab565a0ccacb5e?s=140&d=retro Krista Brashear over 3 years ago

tried this; doesnt work?

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

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!

530f1029282ae3d918003e46_730776466 Phoebe Wallington over 3 years ago

That worked thanks!