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 Treehouse Club: HTML Publish a Story Write a comment in HTML

im stuck

where do i put the comment

index.html
<!DOCTYPE html>
<html>
</html>

3 Answers

Steven Parker
Steven Parker
229,921 Points

:point_right: It'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
PLUS
Patryk Bernasiewicz
Courses Plus Student 10,281 Points

The 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
Mobolaji Kamson
1,421 Points

The <!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>