HTML Tags

List of all html tags, as described in: www.w3.org/TR/html401/index/elements.html. The categorization "Uncommon" is subjective and not based on any statistc evaluations.

Name Code Name Standalone Description HTML 4.01 XHTML 1.0 Do Not Use With CSS Uncommon
Comment  

The comment tag is used to insert a comment in the source code. A comment will be ignored by the browser

 
Anchor a

Anchor for references and definition for links

 
Abbreviation abbr

Indicates an abbreviated form (e.g., www, http, URI, Mass., etc.)

 
Acronym acronym

Indicates an acronym (e.g., WAC, radar, etc.)

 
Address address

The Address element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element often appears at the beginning or end of a document

 
Applet applet

This element, supported by all Java-enabled browsers, allows designers to embed a Java applet in an HTML document. It has been deprecated in favor of the Object element

 
Area area

Defines a region in an image map

 
Bold text b

Renders as bold text style. It is possible to achieve a much richer variety of font effects using style sheets. Use the strong tag in the html code an define it in the stylesheet with font-weight: bold

 

 
Base base

The base element allows the authors to specify a documents URI explicitly

 
Base font basefont

The basefont element sets the base font size using the size attribute. Deprecated in HTML 4.0 in favor of stylesheets. There you can use "font" to describe font characters.

 
Bidirectional override bdo

The bdo element allows authors to turn off the bidirectional algorithm for selected fragments of text

 
Bigger text big

Renders text in a large font. It is possible to achieve a much richer variety of font effects using style sheets. Use the strong tag in the html code an define it in the stylesheet with font-size: larger

 

 
Blockquote blockquote

Blockquote is for long quotations (block-level content)

 
Body body

The body of a document contains the document's content. The content may be presented by a user agent in a variety of ways. For example, for visual browsers, you can think of the body as a canvas where the content appears: text, images, colors, graphics, etc. For audio user agents, the same content may be spoken. Since style sheets are now the preferred way to specify a document's presentation, the presentational attributes of body have been deprecated

 
Break br

Forcing a line break. In xhtml the br tag must be properly closed

 

 
Button button

Buttons created with the Button element function just like buttons created with the Input element, but they offer richer rendering possibilities: the Button element may have content. For example, a Button element that contains an image functions like and may resemble an Input element whose type is set to "image", but the Button element type allows content

 
Caption caption

The caption element's text should describe the nature of the table. The caption element is only permitted immediately after the table start tag. A table element may only contain one caption element

 
Center center

The center element is exactly equivalent to specifying the div element with the align attribute set to center. The center element is deprecated. You can also use stylesheets to position elements like text-align: center

 
Citation cite

Contains a citation or a reference to other sources

 
Code code

Designates a fragment of computer code

 
Column col

The col element allows authors to group together attribute specifications for table columns

 
Groups of table columns colgroup

Group columns together structurally

 
Definition description dd

Definition lists vary only slightly from other types of lists in that list items consist of two parts: a term and a description. The term is given by the DT element and is restricted to inline content. The description is given with a DD element that contains block-level content

 
Deleted del

ins and del are used to markup sections of the document that have been inserted or deleted with respect to a different version of a document (e.g., in draft legislation where lawmakers need to view the changes)

 
Definition dfn

Indicates that this is the defining instance of the enclosed term

 
Directory dir

The dir element was designed to be used for creating multicolumn directory lists

 
Division div

The div tag defines a division/section in a document.The div and span elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents

 
Definition List dl

The dl tag defines a definition list

 
Definition term dt

Definition lists vary only slightly from other types of lists in that list items consist of two parts: a term and a description. The term is given by the dt element and is restricted to inline content. The description is given with a dd element that contains block-level content

 
Emphasized text em

Em and strong are used to indicate emphasis.The presentation of phrase elements depends on the user agent. Generally, visual user agents present em text in italics and strong text in bold font.

You can also use stylesheets to define the text size,  Use the strong tag in the html code an define it in the stylesheet with font-style: italic

 
Fieldset fieldset

The fieldset element allows authors to group thematically related controls and labels. Grouping controls makes it easier for users to understand their purpose while simultaneously facilitating tabbing navigation for visual user agents and speech navigation for speech-oriented user agents. The proper use of this element makes documents more accessible

 
Font font

The font element changes the font size and color for text in its contents

 
Form form

The form element creates a form for user input. A form can contain textfields, checkboxes, radio-buttons and more. Forms are used to pass user-data to a specified URL

 
Frame frame

The frame element defines the contents and appearance of a single frame

 
Frameset frameset

The frameset element specifies the layout of the main user window in terms of rectangular subspaces

 
Header h1

There are six levels of headings in html with h1 as the most important and h6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones

 
Header 2 h2

There are six levels of headings in html with h1 as the most important and h6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones

 
Header 3 h3

There are six levels of headings in html with h1 as the most important and h6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones

 
Header 4 h4

There are six levels of headings in html with h1 as the most important and h6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones

 
Header 5 h5

There are six levels of headings in html with h1 as the most important and h6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones

 
Header 6 h6

There are six levels of headings in html with h1 as the most important and h6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones

 
Head head

The head element contains information about the current document, such as its title, keywords that may be useful to search engines, and other data that is not considered document content. User agents do not generally render elements that appear in the head as content. They may, however, make information in the head available to users through other mechanisms

 
Horizontal rule hr

The hr element causes a horizontal rule to be rendered by visual user agents

 
Html html

This element tells a browser that this is an html document

 
Italic text i

Renders as italic text style. It is possible to achieve a much richer variety of font effects using style sheets. Use the strong tag in the html code an define it in the stylesheet with font-style: italic

 
Inline frame iframe

The iframe element allows authors to insert a frame within a block of text. Inserting an inline frame within a section of text is much like inserting an object via the object element: they both allow you to insert an html document in the middle of another, they may both be aligned with surrounding text, etc

 
Image img

The img element embeds an image in the current document at the location of the element's definition

 
Input input

The input tag defines the start of an input field where the user can enter data

 

 
Inserted text ins

ins and del are used to markup sections of the document that have been inserted or deleted with respect to a different version of a document (e.g., in draft legislation where lawmakers need to view the changes)

 
Keyboard kbd

The kbd tag inicates text to be entered by the user. This text is usually rendered in a different font style.

 
Label label

The label element may be used to attach information to controls. Each label element is associated with exactly one form control

 
Legend legend

The legend element allows authors to assign a caption to a fieldset

 
List li

The li tag defines the start of a list item. The li tag is used in both ordered (ol) and unordered lists (ul)

 
Link link

This element defines a link. Unlike A, it may only appear in the head section of a document, although it may appear any number of times. Although link has no content, it conveys relationship information that may be rendered by user agents in a variety of ways (e.g., a tool-bar with a drop-down menu of links)

 
Map map

The map element specifies a client-side image map (or other navigation mechanism) that may be associated with another elements (img, object, or input)

 
Menu menu

The menu element was designed to be used for single column menu lists

 
Meta meta

The meta element can be used to identify properties of a document (e.g., author, expiration date, a list of key words, etc.) and assign values to those properties. This specification does not define a normative set of properties

 
Noframes noframes

The noframes element specifies content that should be displayed only by user agents that do not support frames or are configured not to display frames. User agents that support frames must only display the contents of a noframes declaration when configured not to display frames. User agents that do not support frames must display the contents of noframes in any case

 
Noscript noscript

The noscript element allows authors to provide alternate content when a script is not executed

 
Object object

The object element allows authors to control whether data should be rendered externally or by some program, specified by the author, that renders the data within the user agent

 
Ordered list ol

Defines an ordered list

 
Option group optgroup

The optgroup element allows authors to group choices logically. This is particularly helpful when the user must choose from a long list of options; groups of related choices are easier to grasp and remember than a single long list of options

 
Option option

The option element defines an option in the drop-down list

 
Paragraph p

The p element represents a paragraph. It cannot contain block-level elements (including p itself)

 
Param param

param elements specify a set of values that may be required by an object at run-time

 
Preformatted text pre

The pre element tells visual user agents that the enclosed text is "preformatted"

 
Quotation q

q is intended for short quotations

 
Strikethrough text s

Render strike-through style text.It is possible to achieve a much richer variety of font effects using style sheets. Use the del tag in the html code an define it in the stylesheet with text-decoration: line-through

 
Sample samp

Designates sample output from programs, scripts, etc

 
Select select

The select element creates a menu. Each choice offered by the menu is represented by an option element. A select element must contain at least one option element

 
Smaller text small

Renders text in a "small" font. It is possible to achieve a much richer variety of font effects using style sheets. Use the span tag in the html code an define it in the stylesheet with font-size: small

 
Span span

The div and span elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents. These elements define content to be inline (span) or block-level (div) but impose no other presentational idioms on the content

 
Strikethrough text strike

<p>Render strike-through style text.It is possible to achieve a much richer variety of font effects using style sheets. Use the del tag in the html code an define it in the stylesheet with text-decoration: line-through</p>

 
Strong strong

Em and strong are used to indicate emphasis.The presentation of phrase elements depends on the user agent. Generally, visual user agents present em text in italics and strong text in bold font.

You can also use stylesheets to define the text size. Use the strong tag in the html code an define it in the stylesheet with font-weight: bold

 
Style style

The style element allows authors to put style sheet rules in the head of the document. HTML permits any number of style elements in the head section of a document

 
subscript text sub

The sub tag defines subscript text. It is possible to achieve a much richer variety of font effects using style sheets. Use the span tag in the html code an define it in the stylesheet with vertical-align: sub

 
Superscript text sup

The sup tag defines superscript text. It is possible to achieve a much richer variety of font effects using style sheets. Use the span tag in the html code an define it in the stylesheet with vertical-align: super

 
Table table

The table tag defines a table.The table element contains all other elements that specify caption, rows, content, and formatting

 
Table body tbody

Table rows may be grouped into a table head, table foot, and one or more table body sections, using the thead, tfoot and tbody elements, respectively. This division enables user agents to support scrolling of table bodies independently of the table head and foot. When long tables are printed, the table head and foot information may be repeated on each page that contains table data

 
Table data td

The td element defines a cell that contains data

 
Textarea textarea

The textarea element creates a multi-line text input control. You can use the tags rows and cols to define the size of the textarea

 
Table footer tfoot

Table rows may be grouped into a table head, table foot, and one or more table body sections, using the thead, tfoot and tbody elements, respectively. This division enables user agents to support scrolling of table bodies independently of the table head and foot. When long tables are printed, the table head and foot information may be repeated on each page that contains table data

 
Table Header th

The th element defines a cell that contains header information

 
Table Head thead

Table rows may be grouped into a table head, table foot, and one or more table body sections, using the thead, tfoot and tbody elements, respectively. This division enables user agents to support scrolling of table bodies independently of the table head and foot. When long tables are printed, the table head and foot information may be repeated on each page that contains table data

 
Title title

Authors should use the title element to identify the contents of a document

 
Table row tr

The tr elements acts as a container for a row of table cells

 
Teletype text tt

Renders as teletype or monospaced text. It is possible to achieve a much richer variety of font effects using style sheets. Use the span tag in the html code an define it in the stylesheet with font-family: monospace

 
Underlined text u

Renders underlined text. It is possible to achieve a much richer variety of font effects using style sheets. Use the strong tag in the html code an define it in the stylesheet with text-decoration: underline

 
Unordered list ul

Defines an unordered list

 
Variable var

Indicates an instance of a variable or program argument