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 CSS: Cascading Style Sheets Review: CSS: Cascading Style Sheets

While creating a Website, what do you do to add side comments in your html code? Is it not // like java???

Thanks

2 Answers

Erik McClintock
Erik McClintock
45,783 Points

Adam,

HTML comments are made as follows:

<!-- add your comment here -->

Erik

Toshi Sosa
Toshi Sosa
8,004 Points

You can use /(your comments)/

Toshi Sosa
Toshi Sosa
8,004 Points

Funny, "" disappeared when it's posted. So I meant in between "/" and "*/" will be commented out.

Toshi Sosa
Toshi Sosa
8,004 Points

Star disappeared again! /star (your comments) star/ "star" as "shift-8 key"