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
Gedalyah (Gary) Frankel
Courses Plus Student 7,234 PointsHow do you add comments to your HTML source
How do you add comments to your HTML source. I found "<!-- Write your comments here -->" but it did not work my index.html file in Workspace. Any advice. TIA
2 Answers
Justin Irabor
1,694 PointsHello Gary. That looks like the correct way to do it. However, just to be sure, select the items you want to comment out and press cmd+/ on your Mac or ctrl+/ on your PC to comment it out automatically.
Let me know if it works.
Justin Irabor
1,694 PointsYou are welcome, Gary!
Gedalyah (Gary) Frankel
Courses Plus Student 7,234 PointsGedalyah (Gary) Frankel
Courses Plus Student 7,234 PointsHi Justine,
The ctrl+/ command worked great. I like it as a shortcut key sequence.
Thanks a lot.