Entering Comments into HTML Documents

Q

How To Enter Comments into HTML Documents?

✍: FYIcenter.com

A

If you want to enter comments into an HTML document, you can use the comment tag: "<!-- ... -->".

Here are some good examples of HTML comments:

  <!-- Start north banner -->...

  <script type="text/javascript">
    <!-- alert("Are you ok?"); -->
  </script>...

  <!-- A long ... 
    paragraph ...
    of comments -->...

 

The Opening Tag of an HTML Element

What Is an HTML Element?

HTML Tag and Attribute Syntax

⇑⇑ HTML Tutorials

2024-03-23, 1045🔥, 0💬