HTML tags format and display web content. Tags differentiate HTML from simple text. Each tag has an opening tag, content, and closing tag within <> brackets. Some tags are unclosed. Certain HTML tags are essential for differentiation from simple files.le, certain HTML tags are used.
Unclosed HTML Tags:
HTML tags like <br> and <hr> are not closed.
- <br>: The Break Line tag is used to break the line of code.
- <hr>: The Horizontal Rule tag is used to put a line across a webpage.
HTML Meta Tags:
The HTML Meta Tags include:
- DOCTYPE
- title
- link
- meta
- style
HTML Text Tags:
The HTML Text Tags include:
- <p>
- <h1>
- <h2>
- <h3>
- <h4>
- <h5>
- <h6>
- <strong>
- <em>
- <abbr>
- <acronym>
- <address>
- <bdo>
- <blockquote>
- <cite>
- <q>
- <code>
- <ins>
- <del>
- <dfn>
- <kbd>
- <pre>
- <samp>
- <var>
- <br>
HTML Link Tags:
The HTML Link Tags include:
- <a>
- <base>
HTML Image and Object Tags:
The HTML Image and Object Tags include:
- <img>
- <area>
- <map>
- <param>
- <object>
HTML List Tags:
The HTML List Tags include:
- <ul>
- <ol>
- <li>
- <dl>
- <dt>
- <dd>
HTML Table Tags:
The HTML Table Tags include:
- <table>
- <tr>
- <td>
- <the>
- <body>
- <head>
- <tfoot>
- <col>
- <colgroup>
- <caption>
HTML Form Tags:
The HTML Form Tags includes:
- <form>
- <input>
- <textarea>
- <select>
- <option>
- <outgroup>
- <button>
- <label>
- <fieldset>
- <legend>
HTML Scripting Tags:
The HTML Scripting Tags includes:
- <script>
- <noscript>
HTML Tags List:
The alphabetical list of HTML tags is arranged below:
HTML Tags by Alphabets:
Tag name |
Uses |
<!– –> | To apply comments in an HTML document. |
<!DOCTYPE> | To specify the version of HTML |
A |
|
<a> | To create a hyperlink or link. |
<abbr> | To represent an abbreviation for a phrase or a word. |
<acronym> | It displays the explanation of the word. It is not supported in HTML5. |
<address> | To specify the contact information of the author of an HTML article. |
<applet> | To embed Java applet. It is not supported in HTML5. |
<area> | To specify an area of an image map. |
<article> | It specifies an independent self-contained article. |
<aside> | To display the information about the main content aside from the other contents on a web page. |
<audio> | To embed sound content in HTML documents. |
B |
|
<b> | To make text bold. |
<base> | It is used to specify the base URL for all relative URLs within the document. |
<basefont> | Set the default font, size, and color for all elements of the document. It is not supported in HTML5. |
<bdi> | To provide isolation for that part of text which may be formatted in different directions from its surrounding text. |
<bdo> | To override the current text direction. |
<big> | To make font size one level larger than its surrounding content. It is not supported in HTML5. |
<blockquote> | For specification of content which is taken from another source. |
<body> | The main content of an HTML document is defined inside the HTML <body> tag. |
<br> | To apply single line break. |
<button> | To represent a clickable button. |
C |
|
<canvas> | To facilitate a graphics space within a web document. |
<caption> | To add a caption or a title to a table in HTML. |
<center> | To align the content in the center. It is not supported in HTML5. |
<cite> | To define a citation the title of the work, books, websites, etc. |
<code> | To display a part of programming code in an HTML document. |
<col> | We can define common column properties. |
<colgroup> | To define a group of columns in a table. |
D |
|
<data> | To link the content with the machine-readable translation. |
<datalist> | To facilitate a predefined list of input options. |
<dd> | To facilitate the definition/description of a term in the description list. |
<del> | It acts as a Markup for the deleted text by striking a line through the deleted text. |
<details> | For additional details, to be displayed on demand on a web page |
<dfn> | To indicate a term that is defined within a sentence/phrase. |
<dialog> | To create a dialog box or other interactive components. |
<dir> | To be used as a container for a directory list of files. It is not supported in HTML5. |
<div> | Using this tag An HTML document is divided into sections |
<dl> | The HTML <dl> tag is a tag used for the HTML Description List or Definition List. |
<dt> | To display elements in definition form. |
E |
|
<em> | To emphasize the content applied within this element. |
<embed> | To be used as an embedded container for external file/application/media. |
F |
|
<fieldset> | To group related elements/labels within a web form. |
<figcaption> | To add a caption or explanation for the <figure> element. |
<figure> | To mark up an image on a web page. |
<font> | To specify the font, size, color, and face for the content. It is not supported in HTML5. |
<footer> | To insert the footer in a webpage. |
<form> | To make an HTML form. |
<frame> | It specifies a particular area of the webpage that can contain another HTML file. It is not supported in HTML5. |
<frameset> | To specify a group of Frames. It is not supported in HTML5. |
H |
|
<h1> to <h6> | It is used to specify headings for an HTML document from level 1 to level 6. |
<head> | To specify the head section of an HTML document. |
<header> | To act as a container of introductory content or navigation links. |
<hr> | To apply thematic breaks between paragraph-level elements. |
<html> | To represent the root of an HTML document. |
I |
|
<i> | To display a part of the text in the italic form. |
<iframe> | To specify an inline frame that can embed other content. |
<img> | To insert an image within an HTML document. |
<input> | To specify an input field within an HTML form. |
<ins> | To represent text that has been inserted within an HTML document. |
<isindex> | To display the search string for the current document. It is not supported in HTML5. |
K |
|
<kbd> | To specify keyboard input. |
L |
|
<label> | To define a label for an input element. |
<legend> | To specify a caption for the content of <fieldset> |
<li> | To show the items in the list. |
<link> | To represent a relationship between the current document and an external resource. |
M |
|
<main> | The main content of the <body> tag can be specified using the HTML <main> tag. |
<map> | To specify an image map with active areas. |
<mark> | To represent a highlighted text. |
<marquee> | To insert the scrolling text or an image either horizontally or vertically. It is not supported in HTML5. |
<menu> | To create a menu list of commands. |
<meta> | To specify the metadata of an HTML document. |
<meter> | It specifies scalar measurement with a known range or fractional value. |
N |
|
<nav> | To represent the section of the page to represent navigation links. |
<noframes> | To facilitate alternate content to represent in the browser that does not support the <frame> elements. It is not supported in HTML5. |
<noscript> | To specify alternative content if a script type is not supported in the browser. |
O |
|
<object> | To embed an object in an HTML file. |
<ol> | To facilitate an ordered list of items. |
<optgroup> | To group the options of a drop-down list. |
<option> | To specify options or items in a drop-down list. |
<output> | To be used as a container element that can show the results of a calculation. |
P |
|
<p> | To represent a paragraph in an HTML document. |
<param> | To specify parameter for an <object> element |
<picture> | To load different images and more than one source element. |
<pre> | To insert preformatted text in an HTML document. |
<progress> | To specify the progress of a task within an HTML document. |
Q |
|
<q> | It specifies short inline quotations. |
R |
|
<rp> | To specify an alternative content if the browser does not support ruby annotations. |
<rt> | It specifies explanations and pronunciations in ruby annotations. |
<ruby> | To represent ruby annotations. |
S |
|
<s> | To render text that is no longer correct or relevant. |
<samp> | To represent the sample output of a computer program. |
<script> | To declare the JavaScript within an HTML document. |
<section> | To specify a generic section for a document. |
<select> | To represent a control that provides a menu of options. |
<small> | To make the text font one size smaller than the document’s base font size. |
<source> | To specify multiple media resources for different media elements such as <picture>, <video>, and <audio> elements. |
<span> | Style and group inline. |
<strike> | To render strikethrough the text. It is not supported in HTML5. |
<strong> | To define important text. |
<style> | To contain style information for an HTML document. |
<sub> | To specify a text which displays as a subscript text. |
<summary> | To define the summary and the title of the section. |
<sup> | To specify a text which represents superscript text. |
<svg> | To be used as a container of SVG (Scalable Vector Graphics). |
T |
|
<table> | To present data in tabular form or to create a table within an HTML document. |
<tbody> | To represent the body content of an HTML table. |
<td> | To specify cells of an HTML table that contains table data |
<template> | To contain the client-side content which will not display at the time of page load and may render later using JavaScript. |
<textarea> | The <textarea> tag in HTML is used to specify a multi-line input control. |
<tfoot> | To specify the footer content of an HTML table. |
<th> | The tag <th> defines the header cells in an HTML table. |
<thead> | <thead> defines a group of rows as the header of an HTML table. |
<time> | To specify data/time within an HTML document. |
<title> | It specifies the title or name of an HTML document. |
<tr> | To specify the row cells in an HTML table |
<track> | The HTML <track> tag specifies time-based text tracks for a media file. |
<tt> | It displays the text on the browser as a teletype, text-only screen, or line printer. |
U |
|
<u> | To render enclosed text with an underline. |
<ul> | To specify the unordered list of items. |
V |
|
<var> | To specify variable name used in mathematical or programming context. |
<video> | To embed video content with an HTML document |
W |
|
<wbr> | To specify a position within text where a break line is possible. |