HTML 5 Tags
HTML 5 tags is the latest version of HTML and is used to specify how a web page will be displayed within a browser. A document begins with an opening <html> tag and ends with a closing </html> tag.
Tags can be used within a web page to specify the text size, text weight, text fonts, text colors, document layout and much more.
Following is a list of html 5 tags and descriptions listed in alphabetical order.
Tag | Description | New HTML 5 |
<!–…–> | Specifies a comment within a web page | |
<!DOCTYPE> | Specifies a document type | |
<a> | Specifies a hyperlink | |
<abbr> | Specifies an abbreviation | |
<address> | Specifies the contact information for the owner of a document | |
<area> | Specifies a specific area within an image-map | |
<article> | Specifies an article | |
<aside> | Specifies content aside from the page content | |
<audio> | Specifies audio/sound content | |
<b> | Specifies bold text | |
<base> | Specifies the base URL for all links within a document | |
<bdi> | Used for text formatting that is formatted in a different direction from the <bdo> | |
<bdo> | Specifies the direction text is displayed | |
<blockquote> | Specifies a quoted section | |
<body> | Specifies the document’s body | |
<br> | Specifies a single line break | |
<button> | Specifies a clickable button | |
<canvas> | Used to define graphics | |
<caption> | Specifies a table caption | |
<cite> | Specifies the title of a work | |
<code> | Specifies computer code | |
<col> | Specifies the properties of a column within a <colgroup> element | |
<colgroup> | Specifies a group of columns within a table | |
<data> | Provides the ability to embed custom data attributes | |
<datalist> | Provides an ‘autocomplete’ drop down list for <input> elements | |
<dd> | Specifies a term description within a description list | |
<del> | Specifies deleted text within a document | |
<details> | Specifies additional information that can be viewed or hidden | |
<dfn> | Defines a term | |
<dialog> | Specifies a dialog box | |
<div> | Specifies a section within a document | |
<dl> | Specifies a description list | |
<dt> | Specifies a term within a description list | |
<em> | Specifies emphasized text | |
<embed> | Specifies an external application | |
<fieldset> | Used to group related elements within a form | |
<figcaption> | Specifies a caption for a <figure> element | |
<figure> | Specifies self-contained content | |
<footer> | Specifies a footer for a document or section | |
<form> | Specifies an HTML form | |
<h1> | Specifies HTML heading 1 | |
<h2> | Specifies HTML heading 2 | |
<h3> | Specifies HTML heading 3 | |
<h4> | Specifies HTML heading 4 | |
<h5> | Specifies HTML heading 5 | |
<h6> | Specifies HTML heading 6 | |
<head> | Specifies information about the document | |
<header> | Specifies a header for a document or section | |
<hr> | Specifies a horizontal rule within the content | |
<html> | Specifies the beginning of an HTML document | |
<i> | Specifies italicized text | |
<iframe> | Specifies an inline frame | |
<img> | Specifies an image | |
<input> | Specifies an input field | |
<ins> | Specifies inserted text | |
<kbd> | Defines keyboard input | |
<keygen> | Specifies a key-pair generator field used for forms | |
<label> | Specifies an <input> element label | |
<legend> | Specifies a <fieldset> element caption | |
<li> | Specifies a list item | |
<link> | Specifies a link between a document and an external file, such as a style sheet | |
<main> | Specifies the main content of a document | |
<map> | Specifies an image-map | |
<mark> | Specifies highlighted text | |
<menu> | Specifies a list | |
<menuitem> | Specifies a menu item | |
<meta> | Specifies meta information about an HTML document | |
<meter> | Measures data within a given range or gauge, such as disk usage | |
<nav> | Specifies navigation links | |
<noscript> | Specifies alternative content for those who have disabled browser scripts | |
<object> | Specifies an embedded object within an HTML document, such as audio or video | |
<ol> | Specifies an ordered list | |
<optgroup> | Specifies a group of related options within a drop-down list | |
<option> | Specifies an option within a drop-down list | |
<output> | Specifies the result of a calculation executed by a script | |
<p> | Specifies a paragraph | |
<param> | Specifies parameters for an object | |
<pre> | Specifies preformatted text | |
<progress> | Displays the progress of a task | |
<q> | Specifies a short quotation | |
<rb> | Specifies the basic text components of a ruby annotation | |
<rp> | Specifies text to display in browsers that do not support ruby annotations | |
<rt> | Specifies an explanation or pronunciation of characters within a ruby annotation | |
<rtc> | Specifies a text container for text components in a ruby annotation | |
<ruby> | Specifies a ruby annotation for East Asian typography | |
<s> | Specifies text that is no longer correct | |
<samp> | Specifies sample code output from a computer program | |
<script> | Specifies a script | |
<section> | Specifies a section within a document | |
<select> | Specifies a drop-down list within a form | |
<small> | Specifies small text | |
<source> | Specifies alternative media resources a browser may display for media, such as <video> and <audio> | |
<span> | Specifies a section in a document | |
<strong> | Specifies important text | |
<style> | Specifies style information within a document | |
<sub> | Specifies subscripted text | |
<sub> | Specifies subscripted text | |
<summary> | Specifies a visible heading for the <details> element | |
<sup> | Specifies superscripted text | |
<table> | Specifies a table | |
<tbody> | Used to group the body content within a table | |
<td> | Specifies a cell within a table | |
<template> | Specifies portions of HTML that can be copied and placed within the document by a script. | |
<textarea> | Specifies a multi-line text input area | |
<tfoot> | Used to group footer content within a table | |
<th> | Specifies a header cell within a table | |
<thead> | Used to group header content within a table | |
<time> | Specifies date/time | |
<title> | Specifies a document title | |
<tr> | Specifies a table row | |
<track> | Specifies text tracks for media elements, such as <audio> and <video> | |
<u> | Specifies text that should be visibly different from normal text, such as a misspelled word | |
<ul> | Specifies an unordered list | |
<var> | Specifies a variable | |
<video> | Specifies a video | |
<wbr> | Specifies a potential line-break |
Discontinued Tags in HTML 5
HTML 4 Tag | Replacement(s) |
<acronym> | <abbr> – Specifies an abbreviation |
<applet> | <object> – Specifies an embedded object |
<basefont> | CSS – Cascading Style Sheet |
<big> | CSS – Cascading Style Sheet |
<center> | CSS – Cascading Style Sheet |
<dir> | <ul> – Specifies an unordered list |
<font> | CSS – Cascading Style Sheet |
<frame> | No Replacement |
<frameset> | No Replacement |
<noframes> | No Replacement |
<strike> | <s> – Specifies text that is no longer correct <del> – Specifies deleted text CSS – Cascading Style Sheet |
<tt> | CSS – Cascading Style Sheet |
This concludes the HTML 5 tags section. For additional tips and codes, visit the Web Design Codes section.