This forum is now read-only. Please use our new forums! Go to forums
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
Answer 53322c58282ae325ab000db4
1 vote
Your line 1 and line 2 must be these two lines:
<!DOCTYPE html>
<head>
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!
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
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.
@Habos your idea did work for me. Thanks