Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed HTML Basics!
You have completed HTML Basics!
Preview
Developers use comments in their code to make parts of it easier to understand. HTML lets you write comments in the code that are ignored by the browser.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
So if you're revisiting your
code after several months,
0:00
comments can help you remember what
different parts of your code do.
0:02
Or if another developer is viewing
your code for the first time,
0:06
it will help them to quickly
understand how your code works.
0:09
So comment tags in HTML begin with a less
than symbol followed by an exclamation
0:11
mark and two dashes and they end with
two dashes and a greater than sign.
0:18
And everything between the opening and
0:23
closing characters is
ignored by the browsers.
0:26
Comments are frequently used to indicate
where sections of a page start and end.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up