HTML Tags List PDF
What are html Tags?
HTML tags are simple instructions that tell a web browser how to format text. You can use tags to format italics, line breaks, objects, bullet points, and more.
These tags live in the HTML (or the Hypertext Markup Language) of every webpage. Put, HTML is the language of web pages.
Examples of html Tags
<p> Paragraph Tag </p>
The <p> and </p> are the HTML tags and “Paragraph Tag” is the HTML element, i.e. the on-page text.
This tag formats any text between the opening <p> tag and the closing </p> tag as a standard paragraph or main body text.
<h2> Heading Tag </h2>
In this example, <h2> and </h2> are the HTML tags and “Heading Tag” is the HTML element, i.e. the on-page heading.
Using this tag will format any text between the opening <h2> tag and the closing </h2> tag as a Heading 2 (a type of subheading.)
<b> Bold Tag </b>
Here the <b> and </b> are the HTML tags and “Bold Tag” is the HTML element, i.e. the on page text.
This tag will format any text between the opening <b> tag and the closing </b> tag as bold.
<i> Italic Tag </i>
Here, the <i> and </i> are the HTML tags and “Italic Tag” is the HTML element (the on-page text.)
This tag will format any text between the opening <i> tag and the closing </i> tag as italic.
<u> Underline Tag</u>
Here the <u> and </u> are the HTML tags and “Underline Tag” is the HTML element, i.e. the on page text.
This tag will format any text between the opening <u> tag and the closing </u> tag as underlined.
The Most Common HTML Tags
There are nearly 100 different types of HTML tags that you can use for your web pages. Here is a list of the most common HTML tags:
Tag name | Description |
<!– –> | Apply comment in an HTML document This tag is use |
<!DOCTYPE> | Specify the version of HTML This tag is use |
A | |
<a> | It is termed as anchor tag and it creates a hyperlink or link. |
<abbr> | It defines an abbreviation for a phrase or longer word. |
<acronym> | It defines acronym for a word. (Not supported in HTML5) |
<address> | It defines the author’s contact information of the HTML article |
<applet> | It defines an embedded Java applet. (Not supported in HTML5) |
<area> | It defines the area of an image map. |
<article> | It defines the self-contained content. |
<aside> | It defines content aside from main content. Mainly represented as sidebar. |
<audio> | It is used to embed sound content in HTML document. |
B | |
<b> | It is used to make a text bold. |
<base> | This tag defines the base URL for all relative URL within the document. |
<basefont> | This tag is used to set default font, size and color for all elements of document. (Not supported in HTML5) |
<bdi> | This tag is used to provide isolation for that part of text which may be formatted in different directions from its surrounding text. |
<bdo> | It is used to override the current text direction. |
<big> | This tag is used to make font size one level larger than its surrounding content. (Not supported in HTML5) |
<blockquote> | It is used to define a content which is taken from another source. |
<body> | It is used to define the body section of an HTML document. |
<br> | It is used to apply single line break. |
<button> | It is used to represent a clickable button |
C | |
<canvas> | It is used to provide a graphics space within a web document. |
<caption> | to define a caption for a table It is use. |
<center> | to align the content in center. (Not supported in HTML5) It is use. |
<cite> | to define the title of the work, book, website, etc. It is use |
<code> | to display a part of programming code in an HTML document It is use. |
<col> | It defines a column within a table which represent common properties of columns and used with the <colgroup> element. |
<colgroup> | to define group of columns in a table It is use. |
D | |
<data> | to link the content with the machine-readable translation It is use. |
<datalist> | to provide a predefined list for input option It is use. |
<dd> | to provide definition/description of a term in description list It is use. |
<del> | It defines a text which has been deleted from the document. |
<details> | It defines additional details which user can either view or hide. |
<dfn> | to indicate a term which is defined within a sentence/phrase It is use. |
<dialog> | It defines a dialog box or other interactive components. |
<dir> | as container for directory list of files. (Not supported in HTML5) It is use. |
<div> | It defines a division or section within HTML document. |
<dl> | to define a description list It is use. |
<dt> | to define a term in description list It is use. |
E | |
<em> | Emphasis the content applied within this element It is use |
<embed> | It is used as embedded container for external file/application/media, etc. |
F | |
<fieldset> | group related elements/labels within a web form It is use . |
<figcaption> | to add a caption or explanation for the <figure> element It is use . |
<figure> | define the self-contained content, and s mostly refer as single unit It is use. |
<font> | It defines the font, size, color, and face for the content. (Not supported in HTML5) |
<footer> | It defines the footer section of a webpage. |
<form> | to define an HTML form It is use. |
<frame> | It defines a particular area of webpage which can contain another HTML file. (Not supported in HTML5) |
<frameset> | It defines group of Frames. (Not supported in HTML5) |
H | |
<h1> to <h6> | It defines headings for an HTML document from level 1 to level 6. |
<head> | It defines the head section of an HTML document. |
<header> | It defines the header of a section or webpage. |
<hr> | to apply thematic break between paragraph-level elements It is use. |
<html> | It represents root of an HTML document. |
I | |
<i> | to represent a text in some different voice It is use. |
<iframe> | It defines an inline frame which can embed other content. |
<img> | to insert an image within an HTML document It is use. |
<input> | It defines an input field within an HTML form. |
<ins> | It represent text that has been inserted within an HTML document. |
<isindex> | to display search string for current document. (Not supported in HTML5) It is use. |
K | |
<kbd> | to define keyboard input It is use. |
L | |
<label> | It defines a text label for the input field of form. |
<legend> | It defines a caption for content of <fieldset> |
<li> | to represent items in list It is use. |
<link> | It represents a relationship between current document and an external resource. |
M | |
<main> | It represents the main content of an HTML document. |
<map> | It defines an image map with active areas. |
<mark> | It represents a highlighted text. |
<marquee> | to insert the scrolling text or an image either horizontally or vertically. (Not supported in HTML5) It is use. |
<menu> | for creating a menu list of commands It is use. |
<meta> | It defines metadata of an HTML document. |
<meter> | It defines scalar measurement with known range or fractional value. |
N | |
<nav> | It represents section of page to represent navigation links. |
<noframes> | It provides alternate content to represent in browser which does not support the <frame> elements. (Not supported in HTML5) |
<noscript> | It provides an alternative content if a script type is not supported in browser. |
O | |
<object> | Embed an object in HTML file It is use . |
<ol> | It defines an ordered list of items. |
<optgroup> | group the options of a drop-down list It is use. |
<option> | To define options or items in a drop-down list It is use . |
<output> | as container element which can show result of a calculation It is use. |
P | |
<p> | It represents a paragraph in an HTML document. |
<param> | It defines parameter for an <object> element |
<picture> | It defines more than one source element and one image element. |
<pre> | It defines preformatted text in an HTML document. |
<progress> | It defines the progress of a task within HTML document. |
Q | |
<q> | It defines short inline quotation. |
R | |
<rp> | It defines an alternative content if browser does not supports ruby annotations. |
<rt> | It defines explanations and pronunciations in ruby annotations. |
<ruby> | to represent ruby annotations It is use. |
S | |
<s> | It render text which is no longer correct or relevant. |
<samp> | to represent sample output of a computer program It is use |
<script> | to declare the JavaScript within HTML document It is use |
<section> | It defines a generic section for a document. |
<select> | It represents a control which provides a menu of options. |
<small> | to make text font one size smaller than document?s base font size It is use |
<source>> | It defines multiple media recourses for different media element such as <picture>, <video>, and <audio> element. |
<span> | for styling and grouping inline It is use. |
<strike> | to render strike through the text. (Not supported in HTML5) It is use. |
<strong> | to define important text It is use. |
<style> | to contain style information for an HTML document It is use. |
<sub> | It defines a text which displays as a subscript text. |
<summary> | It defines summary which can be used with <details> tag. |
<sup> | It defines a text which represent as superscript text. |
<svg> | It is used as container of SVG (Scalable Vector Graphics). |
T | |
<table> | To present data in tabular form or to create a table within HTML document It is use. |
<tbody> | It represents the body content of an HTML table and used along with <thead> and <tfoot>. |
<td> | to define cells of an HTML table which contains table data It is use |
<template> | To contain the client side content which will not display at time of page load and may render later using JavaScript It is use. |
<textarea> | to define multiple line input, such as comment, feedback, and review, etc.It is use |
<tfoot> | It defines the footer content of an HTML table. |
<th> | It defines the head cell of an HTML table. |
<thead> | It defines the header of an HTML table. It is used along with <tbody> and <tfoot> tags. |
<time> | to define data/time within an HTML document It is use . |
<title> | It defines the title or name of an HTML document. |
<tr> | It defines the row cells in an HTML table |
<track> | to define text tracks for <audio> and <video> elements It is use. |
<tt> | To define teletype text. (Not supported in HTML5) It is use. |
U | |
<u> | render enclosed text with an underline It is use. |
<ul> | It defines unordered list of items. |
V | |
<var> | It defines variable name used in mathematical or programming context. |
<video> | embed a video content with an HTML document It is use . |
W | |
<wbr> | It defines a position within text where break line is possible. |
Also here we put its PDF