HTML - Title (element|attribute)

> (World Wide) Web - (W3|WWW) > HyperText markup Language (HTML)

1 - About

Title in HTML can be:


3 - Type

3.1 - Element

The title element represents the document’s title or name.

3.1.1 - DOM Accessor

The document property document.title returns the document's title, as given by the title element. Can be set, to update the document's title. If there is no head element, the new value is ignored.

3.2 - Attribute

The title attribute is a global attribute that represents advisory information associated with the element. Some elements, such as link, abbr, and input, define additional semantics.

Element Usage example
All tooltip
link title or a description of the target resource
image image credit or description
paragraph footnote or commentary on the text
citation information about the source
interactive content label for, or instructions for, use of the element; and so forth

Line break: Each “LF” (Line Feed) (U+000A) character represents a line break. For instance, the following snippet actually defines an abbreviation's expansion with a line break in it:

<p>My logs show that there was some interest in <abbr title="Hypertext Transport Protocol">HTTP</abbr> today.</p>

4 - Documentation / Reference

web/html/title.txt · Last modified: 2019/02/09 11:41 by gerardnico