elements

Jump to: navigation, search

HTML Elements



Summary

Index page for HTML elements.


API Name Summary
!DOCTYPE A Document Type Declaration, or DOCTYPE, is an instruction that associates a particular SGML or XML document (for example, a webpage) with a Document Type Definition (DTD) (for example, the formal definition of a particular version of HTML). In the serialized form of the document, it manifests as a short string of markup that conforms to a particular syntax. Not including <!DOCTYPE> may trigger Quirks mode.
a The a element (<a>) defines a hyperlink, a destination of hyperlink, or both.
abbr The abbr element (<abbr>) represents an abbreviation or acronym.
acronym The acronym element (<acronym>) indicates an abbreviation or a word formed by the initial letter or letters (or major parts) of a compound term.

The acronym element was deprecated in HTML5 and should no longer be used.

address The address element (<address>) encloses contact information of the owner or the author of the document or the article.
applet The applet element (<applet>) embeds a Java applet into a web page.
area The area element (<area>) represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map.
article The article element (<article>) defines a self-contained composition within a page.
aside The aside element (<aside>) indicates content that is only tangentially related to the rest of the content.
audio The audio element (<audio>) is used for playing audio files and may display a minimal media player user interface.
b The b element (<b>) historically was used to tell the browser to make the nested text bold. While the <b> element is widely supported in browsers, its use is not recommended, as CSS can be used to achieve the same effect. In HTML5, it merely signifies that the text should be stylistically distinguished in some way.
base The <base> element is used to specify a document's base URL and base target that is used for resolving relative URLs within the document.
basefont The basefont element (<basefont>) allows specifying a default color and font-size for text on the entire page.

The basefont element was deprecated in HTML4 and should no longer be used.

bdo The bdo element (<bdo>) allows you to specify the direction in which text is to be rendered on the page. ("BDO" stands for Bi-Directional Override.)
bgSound The bgsound element (<bgsound>) instructs the browser to load and play a sound file while the user is on that page. Don't use it. Use the audio element instead.
big The big element (<big>) indicates that the enclosed text should be display in a larger font size than surrounding text.

This element is considered obsolete in HTML5. Use CSS instead.

blockquote The blockquote element (<blockquote>) indicates an extended quotation.
body The body element (<body>) represents the main content of the document.
br The br element (<br>) represents a line break.
button The button element (<button>) defines a clickable button.
canvas The canvas element (<canvas>) provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, or other visual images on the fly. The canvas element is one of the most important elements introduced in HTML5.
caption The caption (<caption>) element represents the title of the table that is its parent.
center The <center> element center-aligns text in an HTML page. The element is deprecated in HTML 4.01 and obsolete in HTML5. Use CSS instead.
cite The cite element (<cite>) defines the title of a work in HTML5; or a citation in HTML 4.01.
code The code element (<code>) specifies a fragment of computer code.
col The col element (<col>) specifies properties for each column within a <colgroup> element in a <table>.
colgroup The colgroup element (<colgroup>) specifies a group of one or more columns in a table for formatting.

This element is useful for applying properties to entire columns, instead of repeating the properties for each cell, for each row.

comment The comment syntax indicates text within an HTML document that is not displayed on the rendered page in the browser.

A comment starts with <!-- and ends with -->.

custom Represents a user-defined HTML tag.
datalist The datalist element (<datalist>) represents a set of <option> elements that represent predefined options for other controls. It may be associated with an <input> element by adding a list attribute to the input element.
dd – description list data The <dd> element represents the description, definition, or value, part of a term-description group in a definition list (<dl>).

A <dt> (topic) is usually followed by one or more <dd> (definition) elements. Several consecutive <dt> are attributed to the <dd> element that immediately follows the group.

del The <del> element indicates text that has been deleted from the document. Browsers normally strike a line through deleted text.
dfn The dfn element (<dfn>) indicates the defining instance of a term.
dir The dir element (<dir>) is used to list directory titles.

The <dir> element is deprecated in HTML 4.01, and obsolete in HTML5. Use CSS instead.

div The div element (<div>) is a generic block-level container that has no semantic value other than the one that you give it via id or class attributes. It can be used for a variety of purposes including the styling of common elements, or for grouping elements with common attributes.
dt – description list topic The <dt> element indicates a definition term within a definition list (<dl>).

A <dt> (topic) is usually followed by one or more <dd> (definition) elements. Several consecutive <dt> are attributed to the <dd> element that immediately follows the group.

em The em element (<em>) indicates text that should be emphasized, usually by rendering it in Italic style text.
EMBED The HTML <embed> Element represents an integration point for an external content- typically, non-HTML content such as an application or some other type of interactive content which involves use of a third-party plugin as a handler (rather than being natively supported by the UA).

The <embed> element is new in HTML5. The embed element is a void element. It means that embed element must have a start tag but must not have an end tag.

fieldset The fieldset element (<fieldset>) is used to group related elements in a form.

Typically, the browser draws a box around the text and other elements that the field set contains.

figcaption The figcaption (<figcaption>) defines a caption or legend for a figure element.

This element is new in HTML5.

figure The figure element (<figure>) represents self-contained content, optionally with a caption, that can be referenced as a single unit from the main content of the document.
font The font element (<font>) specifies the font face, font size, and font color of text.

The <font> element is deprecated in HTML 4.01, and obsolete in HTML5. Use CSS instead.

footer The footer element (<footer>) was introduced in HTML5 for modeling the footer sections of real-world documents. The basic motivation for introducing the footer element was to eliminate the overuse of <div> elements and creating a suitable element for the links and text that are usually located at the bottom of the webpages.
form The form element (<form>) defines an HTML form for user input, subsequently to be submitted to a website or service.
frame The frame element (<frame>) defines one particular window (frame) within a <frameSet>.

The <frame> element is obsolete in HTML5.

frameSet The frameset element (<frameset>) defines a collection of frames.

The <frameset> element holds one or more <frame> elements. Each <frame> element can hold a separate document. The <frameset> tag is obsolete in HTML5.

head The head element (<head>) represents a collection of metadata for the document.
header The header element (<header>) represents the header of a section.
hgroup The hgroup element (<hgroup>) is typically used to group a set of one or more h1-h6 elements — to group, for example, a section title and an accompanying subtitle. The hgroup element (<hgroup>) element is obsolete in HTML5.
hn The h1 through h6 elements define levels of headings within a document.
See more pages...



This is the list of HTML and related Elements from the past to the present.

The root element

Document metadata

Scripting

Sections

Grouping content

Text-level semantics

Edits

Embedded content

Tables

Forms

Interactive

Previous HTML Elements

See also