FriconiX
Free collection of beautiful vector icons for your web pages.

Lesson 1.4. Comments in HTML

Syntax

As with all languages, HTML code can be commented. The comment starts with <!-- and ends with -->. It can straddling several lines, it is the equivalent of the /* */ in C language. Of course, it is not interpreted by the browser.

Example

In the example below, we can see that the first line is not interpreted by the browser :

<!-- Unordored list of special characters-->
<ul>
    <li>&amp; AMPERSAND</li>
    <li>&lt; LESS THAN</li>
    <li>&gt; GREATE THAN</li>
    <li>&ecirc; CIRCUMFLEX</li>
    <li>&eacute; ACUTE ACCENT</li>
    <li>&egrave; E GRAVE ACCENT</li>
    <li>&agrave; A GRAVE ACCENT</li>
</ul>

The previous code displays the next page in which the text unordered list of characters is not displayed:

See also


Last update : 01/25/2020