HTML 5 Tags


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 new-html-5
<aside> Specifies content aside from the page content new-html-5
<audio> Specifies audio/sound content new-html-5
<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> new-html-5
<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 new-html-5
<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 new-html-5
<datalist> Provides an ‘autocomplete’ drop down list for <input> elements new-html-5
<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 new-html-5
<dfn> Defines a term  
<dialog> Specifies a dialog box new-html-5
<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 new-html-5
<fieldset> Used to group related elements within a form  
<figcaption> Specifies a caption for a <figure> element new-html-5
<figure> Specifies self-contained content new-html-5
<footer> Specifies a footer for a document or section new-html-5
<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 new-html-5
<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 new-html-5
<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 new-html-5
<map> Specifies an image-map  
<mark> Specifies highlighted text new-html-5
<menu> Specifies a list new-html-5
<menuitem> Specifies a menu item new-html-5
<meta> Specifies meta information about an HTML document  
<meter> Measures data within a given range or gauge, such as disk usage new-html-5
<nav> Specifies navigation links new-html-5
<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 new-html-5
<option> Specifies an option within a drop-down list  
<output> Specifies the result of a calculation executed by a script new-html-5
<p> Specifies a paragraph  
<param> Specifies parameters for an object  
<pre> Specifies preformatted text  
<progress> Displays the progress of a task new-html-5
<q> Specifies a short quotation  
<rb> Specifies the basic text components of a ruby annotation new-html-5
<rp> Specifies text to display in browsers that do not support ruby annotations new-html-5
<rt> Specifies an explanation or pronunciation of characters within a ruby annotation new-html-5
<rtc> Specifies a text container for text components in a ruby annotation new-html-5
<ruby> Specifies a ruby annotation for East Asian typography new-html-5
<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 new-html-5
<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> new-html-5
<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 new-html-5
<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. new-html-5
<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 new-html-5
<title> Specifies a document title  
<tr> Specifies a table row  
<track> Specifies text tracks for media elements, such as <audio> and <video> new-html-5
<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 new-html-5
<wbr> Specifies a potential line-break new-html-5


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.