Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

<comment>

<comment
dir=ltr|rtr
id=value
lang=language
title=text
</comment>

Indicates a comment. The browser ignores text between the tags, unless it contains HTML code.

Note: You can also use <!-- .. --> to specify that the enclosed text is the author's comment. The text may have more than one line. Any text you enter between the start and end tag does not appear in the browser.

Example

<!--Created by ALG 18/05/00
  Added corrections 22/05/00-->

Attributes

dir=ltr|rtr

Specifies the direction of text. This can be left-to-right (ltr) or right-to-left (rtl). For example, English characters are presented left-to-right, Hebrew characters are presented right-to-left.

id=value

Specifies a unique name for the tag. No two tags can have the same id on a single page. The value must begin with a letter followed by any alphanumeric character, a hyphen, an underscore, a colon or a full stop. You use it to reference a unique style for a tag or to manipulate the tag with a script.

lang=language

Specifies which language the <comment> tag uses. You can enter any valid ISO standard language abbreviation, for example, “en” for English, “de” for German and so on. For example, <span lang="es">hola! como esta?</span>.

This attribute helps search engines understand different languages as different languages rather than just misspelled English. It may also help spelling and grammar checkers and allow speech synthesizers to use language-dependent pronunciation rules.

title=text

For information only. Some browsers display the title when you move the mouse over the tag (like a tool tip).