Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First Use HTML Elements

Dillon Greening
Dillon Greening
152 Points

Hi, I cannot get past write an HTML doctype. I have completed the task several times, but it will not move on?

<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Sri Anant | Utsaaha</title> </head> <body> <header> <h1>Sri Anant</h1> <h2>Utsaaha</h2> </header> <section> <p>Gallery will go here</p> </section> <footer> <p>Ā© 2015 Sri Anant</p> </footer> </body> </html>

index.html

2 Answers

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

Dillon,

The task is asking you to type just the doctype (without all the other code). Ironically, it's the bit that didn't get formatted correctly in your code snippet.

A great guide can be found here.

Hope this helps!

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

If my answer was helpful, please mark as solved! Thanks!

kevin jordan
kevin jordan
11,353 Points

Dillon - I'm thinking that what you're missing is a 'body' tag in your document. So something like this :

<!doctyle html>
<html>
<head>
</head>
<body>
</body>
<footer>
</footer>
</html>

Of course to pass the quiz, you might have to adjust this format to fit the question, but in general this is how you would lay out a page. Hope this helps a bit ! kj