Table of HTML Tags
An HTML tag is usually defined as a character set that provides a formatted command for a web page. Tags provide directions for visual content.
In early times, HTML tags were responsible for the most part of web code. However, today their importance has decreased.
HTML tags include tags for headlines or titles, tags for tables, tags for references, etc. An HTML tag has a tag name written in angular brackets. It can appear in pairs indicating the beginning and ending tag that frames a text, a certain piece of code, or other tags. The beginning tag consists of a name which can be followed by one or more attributes. The ending tag consists of the same name which is preceded by a forward-slash («/»).
Below you can find a table of HTML tags with short descriptions.
Basic Tags
Tag | Description |
---|---|
Sets the type of the document. | |
Sets an HTML document. | |
Contains general information (metadata) about the document. | |
Sets a title of the document. | |
Specifies the body of the document. | |
to | Defines HTML headings. |
Defines a paragraph. | |
Specifies a line break. | |
Inserts a horizontal line or defines a thematic break. | |
Defines a comment. |
Formatting Tags
Formatting tags are used for visual styling and emphasizing the fragments of text.
Tag | Descriptions |
---|---|
Defines acronyms. Not supported in HTML5. The tag is used instead. | |
Defines abbreviation or acronym. | |
Specifies contact information for the author/owner of a document/article. | |
Displays text in a bold style. | |
Isolates a text fragment from its surrounding for the purposes of bidirectional text formatting. New element in HTML5. | |
Overrides the current text direction. | |
Displays text in a bigger size. Not supported in HTML5․ CSS styles are used instead. | |
Defines a long citation. | |
Displays text as centered. Not supported in HTML5․ CSS styles are used instead. | |
Describe a reference (title, author, or the URL) to a cited creative work. | |
Defines a fragment of a computer code. | |
Specifies deleted text. | |
Sets a definition of a term in italic. | |
Specifies an emphasized text. | |
Sets font, color and size of the text. Not supported in HTML5․ CSS styles are used instead. | |
Displays text in italic. | |
Defines a text inserted into a document. | |
Specifies keyboard input. | |
Contains a marked/highlighted text. New element in HTML5. | |
Defines a scalar measurement within a known range (a gauge). | |
Defines a preformatted text. | |
Indicates the completion progress of a task (progress bar). New element in HTML5. | |
Defines a short quotation. | |
Contains an alternative text to be shown in browsers that do not support the text. New element in HTML5. | |
Defines the pronunciation of character presented in a ruby annotations (for East Asian typography). New element in HTML5. | |
Represents a ruby annotation (for East Asian typography). New element in HTML5. | |
Displays a text that is no longer correct in strikethrough style. | |
Sets sample output from a computer program. | |
Displays text in a smaller size. | |
Defines text in strikethrough style. Not supported in HTML5. The or tags are used instead. | |
Defines strongly emphasized text. | |
Defines subscripted text. | |
Defines superscripted text. | |
Defines a template. New element in HTML5. | |
Defines a date/time. New element in HTML5. | |
Displays text in a teletype style. Not supported in HTML5. CSS styles are used instead. | |
Displays text stylistically different from normal text as underlined. | |
Defines a variable. | |
Defines a possible line-break. New element in HTML5. |
Form Tags
Tag | Description |
---|---|
Specifies an HTML form for user input. | |
Defines an input control. | |
Sets a multi-line text input control (text area). | |
Defines a clickable button inside an HTML form. | |
Defines a selection list within a form. | |
Groups related options in a selection list. | |
Defines an option in a selection list. | |
Sets a label for an element. | |
Groups related elements in a form. | |
Sets a title for an element. | |
Contains a set of pre-defined options for an element. New element in HTML5. | |
Generates a public-private key pair for encoding/decoding data of the form. New element in HTML5. | |
Defines the result of a calculation. New element in HTML5. |
Frames Tags
Tag | Description |
---|---|
Specifies a single frame within a frameset. Not supported in HTML5․ | |
Specifies a set of frames. Not supported in HTML5․ | |
Contains an alternate content to be displayed in browsers that do not support frames. Not supported in HTML5․ | |
Displays a URL in an inline frame. |
Image Tags
Tag | Description |
---|---|
Specifies an image. | |
Specifies a client-side image-map. | |
Defines an interactive area inside an image-map. | |
Defines an area in the document, where one can draw graphics on the fly via scripting (usually JavaScript). New element in HTML5. | |
Defines a title of a element. New element in HTML5. | |
Defines a self-contained content. New element in HTML5. | |
Container for multiple image resources specified within elements. New element in HTML5. | |
Container for SVG graphics. New element in HTML5. |
Audio/Video Tags
Link Tags
Tag | Description |
---|---|
Defines a hyperlink. | |
Sets the relationship between the current document and an external resource (usually external CSS stylesheet). | |
Defines navigation links. New element in HTML5. |
List Tags
Tag | Description |
---|---|
Defines an unordered list. | |
Defines an ordered list. | |
Defines a list item. | |
Defines a directory list. Not supported in HTML5 | |
Defines a definition list. | |
Defines a term/item in a definition list. | |
Defines a definition for a term in a definition list. | |
Defines a list of commands/context menu. | |
Defines an item in context menu. New element in HTML5. |
Table Tags
Tag | Description |
---|---|
Defines a table. | |
Defines a title of the table. | |
Defines a header cell in a table. | |
Defines a row of cells in a table. | |
Defines a cell in a table. | |
Groups a set of rows that describes the column labels of a table. | |
Groups a set of rows defining the main body of the table data. | |
Defines a footer of a table. | |
Defines values for one or more columns in a element. | |
Specifies a group of one or more columns in a table for formatting. |
Styling and Semantic Tags
Tag | Description |
---|---|
Contains style information (commonly CSS). | |
Defines a division or a section in a document. | |
Defines an inline styleless section in a document. | |
Defines a header cell in a table. New element in HTML5. | |
Defines the footer of a document or a section. New element in HTML5. | |
Specifies the main content of a document. New element in HTML5. | |
Defines a section of a document (header, footer etc.). New element in HTML5. | |
Defines an article. New element in HTML5. | |
Defines a section, which contains information loosely related to the page content. New element in HTML5. | |
Contains additional details that the user can view or hide. New element in HTML5. | |
Defines a dialog box or window. New element in HTML5. | |
Defines a machine-readable translation of the content. New element in HTML5. | |
Defines a summary for the element. New element in HTML5. |
Metadata Tags
Tag | Description |
---|---|
Contains technical information about the document, which is not displayed to the user. | |
Contains meta data of the document. | |
Defines the base (absolute) URL for all linked objects on a page. | |
Specifies the base font, size and color for a text. Not supported in HTML5. |
Scripting and Programming Tags
Tag | Description |
---|---|
Contains script in the document for client-side processing. | |
Defines an alternate content to be displayed in browsers that do not support scripts. | |
Specifies an embedded applet. Not supported in HTML5. | |
Contains external application, typically multimedia content like audio or video embedded in an HTML document. | |
Defines an embedded object (video, Flash, applets, images, etc.). | |
Defines a parameter for an object or applet element. |