Information about cookies on this page

Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy

  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in
  
  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in

Comments

Comments in HTML are essentially notes for developers. A comment starts with <!-- and ends with -->. The browser ignores everything in between, so comments are not visible on the web page. They are usually used to describe the code:

<!-- This is the section where the user registers -->
<div>
	...
</div>

Another use of comments is for testing code: we can temporarily hide an element by putting it inside a comment.

<!-- <p>Hidden code</p> -->

Instructions

  1. 1

    Above the div element with the Breeds heading, write a comment with the text The most common breeds.

Back

9/10

  1. 1. Headings
  2. 2. Paragraphs
  3. 3. Quiz: Paragraphs
  4. 4. Divs
  5. 5. Text Styling
  6. 6. Line Breaks
  7. 7. Lists
  8. 8. Quiz: Lists
  9. 9. Comments
  10. 10. Recap
Next

Try it yourself

Do this exercise right here in your browser. No account needed.