HTML Element

An HTML element is an individual component of an HTML document. HTML documents are composed of a tree of HTML elements and other nodes, such as text nodes. Each element can have attributes specified. Elements can also have content, including other elements and text. HTML elements represent semantics, or meaning. For example, the title element represents the title of the document.

In the HTML syntax, most elements are written with a start tag and an end tag, with the content in between. Tags are composed of the name of the element, surrounded by angle brackets. An end tag also has a slash after the opening angle bracket, to distinguish it from the start tag. For example, a paragraph, which is represented by the p element, would be written as

In the HTML syntax, most elements are written ...

However, not all of these elements require the end tag, or even the start tag, to be present. Some elements, the so-called void elements don't have an end tag. A typical example is the br element, which represents a significant line break, such as in a poem or an address. For example, the address of the dentist in Finding Nemo would be written as

P. Sherman
42 Wallaby Way

Attributes are specified on the start tag. For example, the abbr element, which represents an abbreviation, expects a title attribute with its expansion. This would be written as


Read more about HTML Element:  Document Head Elements, Document Body Elements, Frames, Historic Elements, Non-standard Elements, Previously Obsolete But Added Back in HTML 5, Comments

Other articles related to "html element, elements, html, html elements":

HTML Element - Comments
... For compatibility with some pre-1995 browsers, the contents of style and script elements are still sometimes surrounded by comment delimiters ...
HTML - Markup - Elements
... HTML documents are composed entirely of HTML elements that, in their most general form have three components a pair of tags, a "start tag" and "end tag" some attributes within the start tag and finally, any textual ... The HTML element is everything between and including the start and end tags ... The general form of an HTML element is therefore content ...

Famous quotes containing the word element:

    All forms of beauty, like all possible phenomena, contain an element of the eternal and an element of the transitory—of the absolute and of the particular. Absolute and eternal beauty does not exist, or rather it is only an abstraction creamed from the general surface of different beauties. The particular element in each manifestation comes from the emotions: and just as we have our own particular emotions, so we have our own beauty.
    Charles Baudelaire (1821–1867)