3️⃣

2.3 HTML Comments

2.3 HTML Comments

Like in most programming languages, HTML has something called comments that can write on an HTML document . These comments are special code because they are ignored by computers. You should use comments to explain bits of code so that the HTML program is readable to other human programmers.

Here is what an HTML comment looks like:

<!--Comment here-->

You can put anything inside of the<!--and the --> and it will be ignored by the computer. You can also make the comment be multiline such as:

<!-- This is
      a
      multi-line
      comment
-->
⚖️

Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.