Stylin’ with CSS

The Blog and Books of Charles Wyke-Smith

HTML and HTML5 Elements Reference List

Root Element
Tag Description
<html> Represents the root of an HTML or XHTML document. All other elements must be descendants of this element.
Back to Top  
Document Metadata
Tag Description
<head> Represents a collection of metadata about the document, including links to or definitions of scripts and style sheets.
<title> Defines the title of the document, shown in a browser’s title bar or on the page’s tab. It can only contain text and any contained tags are not interpreted.
<base> Defines the base URL for relative URL in the page.
<link> Used to link JavaScript and external CSS with the current HTML document.
<meta> Defines metadata that can’t be defined using other HTML element.
<style> Style tag is used to write inline CSS.
Back to Top  
Scripting
Tag Description
<script> Defines either an internal script or link to an external script. The script language is JavaScript
<noscript> Defines an alternative content to display when the browser doesn’t support scripting.
Back to Top  
Sections
Tag Description
<body>
Represents the main content of an HTML document. There is only one <body> element in a document.
<section> Defines a section in a document
<nav> Defines a section that contains only navigation links
<article> Defines self-contained content that could exist independantly of the rest of the content
<aside> Defines some content set aside from the rest of page content. If it is removed, the remaining content still make sence.
<h1>,<h2>,<h3>,<h4>,<h5>,<h6> Heading elements implement six levels of document headings, <h1> is the most important and <h6> is the least. A heading element briefly describes the topic of the section it introduces.
<hgroup> Groups a set of <h1> to <h6> elements when a heading has multiple levels
<header> Defines the header of a page or section. It often contains a logo, the title of the Web site and a navigational table of content.
<footer> Defines the footer for a page or section. It often contains a copyright notice, some links to legal information or addresses to give feedback.
<address> Defines a section containing contact information.
Back to Top  
Grouping Content
Tag Description
<p> Defines a portion that should be displayed as a paragrah.
<hr> Represents a thematic break between paragraphs of a section or article or any longer content.
<pre> Indicates that its content is preformatted and that this format must be preserved.
<blockquote> Represents a citation.
<ol> Defines an ordered list of items, that is a list which change its meaning if we change the order of its elements
<ul> Defines an unordered list of items.
<li> Defines a item of a enumeration list often preceded by a bullet in English.
<dl> Defines a definition list, that is a list of terms and their associated definitions.
<dt> Represents a term defined by the next <dd>.
<dd> Represents the definition of the terms immediately listed before it.
<figure> Represents a figure illustrated a part of the document.
<figcaption> Represents the legend of a figure.
<div> Represents a generic container with no special meaning.
Back to Top  
Text-Level Semantics
Tag Description
<a> Represents an hyperlink, linking to another resource.
<em> Represents emphasized text, like a stress accent.
<strong> Represents especially important text.
<small> Represents a side comment, that is text like a disclaimer, a copyright which is not essential to the comprehension of the document.
<s> Represents content that is no longer accurate or relevant.
<cite> Represents the title of a work.
<q> Represents an inline quotation.
<dfn> Represents a term whose definition is contained in its nearest ancestor content.
<abbr> Represents an abbreviation or an acronym, eventually with its meaning.
<data> Associates to its content a machine-readable equivalent. (This element is only in the WHATWG version of the HTML standard, and not in the W3C version of HTML5).
<time> Represents a date and time value, eventually with a machine-readable equivalent.
<code> Represents some computer code.
<var> Represents a variable, that is an actual mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or a mere placeholder in prose.
<samp> Represents the output of a program or a computer.
<kbd> Represents user input, often from the keyboard, but not necessary, it may represent other input, like transcribed voice commands.
<sub>,<sup> Represents a subscript, respectively a superscript.
<i> Represents some text in an alternate voice or mood, or at least of different quality, such as a taxonomic designation, a technical term, an idiomatic phrase, a thought or a ship name.
<b> Represents a text which to which attention is drawn for utilitarian purposes. It doesn’t convey extra importance and doesn’t implicate an alternate voice.
<u> Represents unarticulate non-textual annoatation, such labeling the text as being misspelt or labeling a proper name in Chinese text.
<mark> Represents text highlighted for reference purposes, that is for its relevance in another context.
<ruby> Represents content to be marked with ruby annotations, short runs of text presented alongside the text. This is often used in conjunction with East Asian language where the annotations act as a guide for pronunciation, like the Japanese furigana.
<rt> Represents the text of a ruby annotation.
<rp> Represents parenthesis around a ruby annotation, used to display the annotation in an alternate way by browsers not supporting the standard display for annotations.
<bdi> Represents text that must be isolated from its surrounding for bidirectional text formatting. It allows to embed span of text with a different, or unknown, directionality.
<bdo> Represents the directionality of its children, in order to explicitly override the Unicode bidirectional algorithm.
<span> Represents text with no specific meaning. This has to be used when no other text-semantic element conveys an adequate meaning, which, in this case, is often brought by global attributes like class, lang, or dir.
<br> Represents a line break.
<wbr> Represents a line break opportunity, that is a suggested wrapping point in order to improve readability of text split on several lines.
Back to Top  
Edits
Tag Description
<ins> Defines an addition to the document.
<del> Defines a removal from the document.
Back to Top  
Embedded content
Tag Description
<img> Represents an image.
<iframe> Represents a nested browsing context, that is an embedded HTML document.
<embed> Represents a integration point for an external, often non_HTML, application or interactive content.
<object> Represents an external resource, which will be treated as an image, an HTML sub-document or an external resource to be processed by a plugin.
<param> Defines parameters for use by plugins invoked by <object> elements.
<video> Represents a video, and its associated audio files and captions, with the necessary interface to play it.
<audio> Represents a sound, or an audio stream.
<source> Allows authors to specify alternative media resources for media elements like <video> or <audio>.
<track> Allows authors to specify timed text track for media elements like <video> or <audio>.
<canvas> Represents a bitmap area that scripts can be used to render graphics, like graphs, game graphics, any visual images on the fly.
<map> In conjunction with <area>, defines an image map.
<area> In conjunction with <map>, defines an image map.
<svg> Defines an embedded vectorial image.
<math> Defines a mathematical formula.
Back to Top  
Tabular Data
Tag Description
<table> Represents data with more than one dimension.
<caption> Represents the title of a table.
<colgroup> Represents a set of one or more columns of a table.
<col> Represents a column of a table.
<tbody> Represents the block of rows that describes the concrete data of a table.
<thead> Represents the block of rows that describes the column labels of a table.
<tfoot> Represents the block of rows that describes the column summaries of a table.
<tr> Represents a row of cells in a table.
<td> Represents a data cell in a table.
<th> Represents a header cell in a table.
Back to Top  
Forms
Tag Description
<form> Represents a formular, consisting of controls, that can be submitted to a server for processing.
<fieldset> Represents a set of controls.
<legend> Represents the caption for a <fieldset>.
<label> Represents the caption of a form control.
<input> Represents a typed data field allowing the user to edit the data.
<button> Represents a button.
<select> Represents a control allowing the selection among a set of options.
<datalist> Represents a set of predefined options for other controls.
<optgroup> Represents a set of options, logically grouped.
<option> Represents an option in a <select> element, or a suggestion of a <datalist> element.
<textarea> Represents a multiline text edit control.
<keygen> Represents a key pair generator control.
<output> Represents the result of a calculation.
<progress> Represents the completion progress of a task.
<meter> Represents a scalar measurement (or a fractional value), within a known range
Back to Top  
Interactive Elements
Tag Description
<details> Represents a widget from which the user can obtain additional information or controls.
<summary> Represents a summary, caption, or legend for a given <details>.
<command> Represents a command that the user can invoke.
<menu> Represents a list of commands.
Back to Top