Html Comments

Comments are very important when building any website.  We can use them in a variety of ways.

  • Comment brackets can be added to remove problematic code.
  • We can use them as reminders of things to repair or replace
  • When working as a team comments help guide us through someone elses code

Below are examples of single and multiline comment types. Comment liberally but not excessively!

<!-- this is how you make a comment in html the browser ignores everything inside of these-->
<!--
this is
how you make
a multiline
comment
-->


Join the discussion

Email addresses will not be published.
Comments will not be displayed until approved by an admin