Locked lesson.
About this lesson
Exercise files
Download this lesson’s related exercise files.
Commenting Code.docx59 KB Commenting Code - Solution.docx
59 KB
Quick reference
Commenting Code
Comments help us break up our code and make it more manageable and readable.
When to use
Any time you have a section of code, it's a good idea to create a short comment describing the section.
Instructions
HTML comments take this form: <!-- comment -->
Use them whenever you want to break up different sections of your code. Comments make your code more readable and are especially useful if you're working with a team of web developers - comments make your code more readable to the entire team as well as yourself.
Hints & tips
- Comments look like this: <!-- comment -->
- Use comments often!
Lesson notes are only available for subscribers.