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

LY SERIGNE
LY SERIGNE
731 Points

How I put a comment on HTML

I need to write a comment on HTML

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

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

The syntax looks like this

<!-- this is my comment in html -->
Konrad Pilch
Konrad Pilch
2,435 Points

if you wonder how to write a comment in CSS, which you will run shortly, if you plan to learn CSS would look like this :

/* This is my comment in CSS */