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 trialadrian lena
1,864 Pointsim stuck
where do i put the comment
<!DOCTYPE html>
<html>
</html>
3 Answers
Steven Parker
231,269 PointsIt's a comment — you can put it anywhere.
As long as it's properly formatted, placement won't matter. It will not appear on the page, and it will not affect, or be affected by, any of the tags in the document.
You just cannot place a comment inside a tag, as you might place an attribute.
Patryk Bernasiewicz
Courses Plus Student 10,281 PointsThe challenge says "put a comment at the top of the page", so I think you need to put it above the <!DOCTYPE> tag.
Mobolaji Kamson
1,421 PointsThe <!DOCTYPE html> is the first tag in your index. html document after that comes the opening tag <html>
the closing tag </html> will be the last tag in your document. all other tags will come in between. <html> and </html>