HTML tags list | list of tags used in HTML5

Html has versious versions but, as you know, the latest is called html5. Html is a Markup language that uses the Html elements or Html tags for its structure. There are many Html tags available to us. Html5 introduced many new HTML Tags to use in our documents and many elements are tags are now obsolete tags in HTML5. Some of its new tags are not supported in all browsers like canvas etc. Hence the developers should always be careful to use HTML5 because in older browsers they are not supported.

Here is a list of all HTML tags and HTML5 tags or elements. For better understanding we have highlighted the obsolete tags and mentioned the HTML5 tags as well. A brief description is given but later we will discuss these in detail.

HTML Tags list

Tags Brief Description
<!–…..–> Used for a comment
<!DOCTYPE> Used for the document type
<a> Used for a hyperlink
<abbr> Used for an abbreviation
<acronym> Not supported in HTML5. Used for an acronym
<address> Used for contact information for the author/owner of a document
<applet> Not supported in HTML5. Deprecated in HTML 4.01. Used for an embedded applet
<area> Used for an area inside an image-map
<article> Used for an article. (HTML5 Tag)
<aside> Used for content aside from the page content. (HTML5 Tag)
<audio> Used for sound content (HTML5 Tag)
<b> Used to bold text
<base> Specifies the base URL/target for all relative URLs in a document
<basefont> Not supported in HTML5. Deprecated in HTML 4.01. Specifies a default colour, size, and font for all text in a document
<bdi> Isolates a part of text that might be formatted in a different direction from other text outside it. (HTML5 Tag)
<bdo> Overrides the current text direction
<big> Not supported in HTML5. Used for big text
<blockquote> Used for a section that is quoted from another source
<body> Used for the document’s body
<br> Used for a single line break
<canvas> Used to draw graphics, on the fly, via scripting (usually JavaScript) (HTML5 Tag)
<caption> Used for a table caption
<center> Not supported in HTML5. Deprecated in HTML 4.01. Used for centred text
<cite> Used for the title of a work
<code> Used for a piece of computer code
<col> Specifies column properties for each column within a <colgroup> element
<colgroup> Specifies a group of one or more columns in a table for formatting
<command> Used for a command button that a user can invoke
<datalist> Specifies a list of pre-defined options for input controls (HTML5 Tag)
<data> This element has been added in HTML5 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). (HTML5 Tag)
<dd> Used for a description of an item in a definition list
<del> Used for text that has been deleted from a document
<details> Used for additional details that the user can view or hide (HTML5 Tag)
<dfn> Used for a definition term
<dialog> Used for a dialog box or window
<dir> Not supported in HTML5. Deprecated in HTML 4.01. Used for a directory list
<div> Used for a section in a document
<dl> Used for a definition list
<dt> Used for a term (an item) in a definition list
<em> Used for emphasized text
<embed> Used for a container for an external (non-HTML) application (HTML5 Tag)
<fieldset> Groups related elements in a form
<figcaption> Used for a caption for a <figure> element. (HTML5 Tag)
<figure> Specifies self-contained content. (HTML5 Tag)
<font> Not supported in HTML5. Deprecated in HTML 4.01. Used for font, colour, and size for text
<footer> Used for a footer for a document or section. (HTML5 Tag)
<form> Used for an HTML form for user input
<frame> Not supported in HTML5. Used for a window (a frame) in a frameset
<frameset> Not supported in HTML5. Used for a set of frames
<h1> to <h6> Used for HTML headings
<head> Used for information about the document
<header> Used for a header for a document or section. (HTML5 Tag)
<hgroup> Groups heading (<h1> to <h6>) elements
<hr> Used for a thematic change in the content
<html> Used for the root of an HTML document
<i> Used for a part of text in an alternate voice or mood
<iframe> Used for an inline frame
<img> Used for an image
<input> Used for an input control
<ins> Used for a text that has been inserted into a document
<kbd> Used for keyboard input
<keygen> Used for a key-pair generator field (for forms) (HTML5 Tag)
<label> Used for a label for an <input> element
<legend> Used for a caption for a <fieldset>, <figure>, or <details> element
<li> Used for a list item
<link> Used for the relationship between a document and an external resource (most used to link to style sheets)
<main> This element has been added in HTML5 Defines the main or important content in the document. There is only one <main> element in the document.
<map> Used for a client-side image-map
<math> Defines a mathematical formula. (HTML5 Tag)
<mark> Used for marked/highlighted text. (HTML5 Tag)
<menu> Used for a list/menu of commands (HTML5 Tag)
<menuitem> Represents a command that the user can invoke. (HTML5 Tag)
<meta> Used for metadata about an HTML document
<meter> Used for a scalar measurement within a known range (a gauge) (HTML5 Tag)
<nav> Used for navigation links. (HTML5 Tag)
<noframes> Not supported in HTML5. Used for an alternate content for users that do not support frames
<noscript> Used for an alternate content for users that do not support client-side scripts
<object> Used for an embedded object
<ol> Used for an ordered list
<optgroup> Used for a group of related options in a drop-down list
<option> Used for an option in a drop-down list
<output> Used for the result of a calculation (HTML5 Tag)
<p> Used for a paragraph
<param> Used for a parameter for an object
<pre> Used for pre-formatted/space-preserving text
<progress> Represents the progress of a task (HTML5 Tag)
<q> Used for a short quotation
<rp> Used for what to show in browsers that do not support ruby annotations. (HTML5 Tag)
<rt> Used for an explanation/pronunciation of characters (for East Asian typography). (HTML5 Tag)
<ruby> Used for a ruby annotation (for East Asian typography). (HTML5 Tag)
<s> Used for text that is no longer correct
<samp> Used for sample output from a computer program
<script> Used for a client-side script
<section> Used for a section in a document. (HTML5 Tag)
<select> Used for a drop-down list.
<small> Used for smaller text
<source> Used for multiple media resources for media elements (<video> and <audio>) (HTML5 Tag)
<span> Used for a section in a document
<strike> Not supported in HTML5. Deprecated in HTML 4.01. Used for strike-through text
<strong> Used for important text
<svg> Defines an embedded vectorial image. (HTML5 Tag)
<style> Used for style information for a document
<sub> Used for subscripted text
<summary> Used for a visible heading for a <details> element (HTML5 Tag)
<sup> Used for superscripted text
<table> Used for a table
<tbody> Groups the body content in a table
<td> Used for a cell in a table
<textarea> Used for a multi-line input control (text area)
<tfoot> Groups the footer content in a table
<th> Used for a header cell in a table
<thead> Groups the header content in a table
<time> Used for a date/time. (HTML5 Tag)
<title> Used for a title for the document
<tr> Used for a row in a table
<track> Used for text tracks for media elements (<video> and <audio>) (HTML5 Tag)
<tt> Not supported in HTML5. Used for Teletype text
<u> Used for text that should be stylistically different from normal text
<ul> Used for an unordered list
<var> Used for a variable
<video> Used for a video or movie (HTML5 Tag)
<wbr> Used for a possible line-break (HTML5 Tag)

Comments