50 HTML Tags and Their Functions With Examples PDF
50 HTML Tags and Their Functions With Examples PDF
<!DOCTYPE html>
<a href="#"></a>
This tag is used to define the contact information for the author or owner of a
document.
<address></address>
This HTML tags represents an independent, and self-contained piece of content within
a document.
<article></article>
This tag is used to define the content that is tangentially related to the main content.
<aside></aside>
6. HTML Audio Tag
<audio src=""></audio>
<b></b>
<blockquote></blockquote>
<body></body>
<button></button>
This HTML tag is used for a line-break and to create a new line without creating any
new paragraph.
<br>
12. HTML Canvas Tag
In HTML the <canvas> tag is used for drawing surface for dynamic graphics and
animations.
<canvas></canvas>
The <code> tag is used to define a piece of computer code in the HTML document.
<code></code>
This HTML tag is used to define a set of predefined options for an <input> element.
<datalist></datalist>
The <details> HTML tag creates a disclosure widget which is used to show or hid the
additional content on the web page.
<details></details>
<dialog></dialog>
This HTML tag is used to define a division or section within an HTML document.
<div></div>
18. HTML Em Tag
The <em> HTML tag is used to render the text in italics, indicating emphasis.
<em></em>
The <fieldset> HTML tag groups related form elements together and provide a visual
representation.
<fieldset></fieldset>
This HTML tag is used to represent a caption or legend for an <figure> element.
<figcaption></figcaption>
<figure></figure>
The HTML <footer> tag is used to define the footer section of a document or a section
in the webpage.
<footer></footer>
It is used to create a form for gathering user input and submit on the server.
<form action=""></form>
24. HTML h1 to h6 Tag
These HTML tags are used to define different levels of heading on the webpage, where
<h1> is the highest and <h6> is the lowest heading in HTML.
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
It contains meta-information about the HTML document, such as the title and link to
external stylesheets and more..
<head></head>
This HTML tag is used to represent the introductory content or a container for the
header of a document or a section.
<header></header>
This tag represents the root element of an HTML document. Here is the syntax to define
it:
<html></html>
28. HTML I Tag
<i></i>
The <iframe> HTML tag is used to embed an external web page or document within the
current HTML document.
This HTML tag is used to insert an image into the web page.
The <input> HTML tag is used to create an input field and input tag is used for such as
a text field, radio button, checkbox and more.
<input type="text"/>
<label for=""></label>
This tag is used to provide a caption or title for a <fieldset> element in HTML document.
<legend></legend>
34. HTML List Tag
This HTML tag is used to crate list item within an ordered or unordered list.
<li></li>
This tag is used to define a link to an external resource, such as a CSS stylesheet or an
icon.
or
The HTML <main> tag is used to specify the main content of a HTML document,
excluding headers, footers, and sidebars.
<main></main>
<mark></mark>
This HTML tag provides metadata about the HTML document, such as character
encoding or page description.
This HTML tag is used to represent a scalar measurement within a known range in the
document.
The <nav> HTML tag is used to define a section of navigation links in the HTML
document or it is used to create the navigation bar.
<nav></nav>
<ol></ol>
This HTML tag is used to define options within a <select> dropdown or <datalist> control.
<option value=""></option>
<p></p>
<pre></pre>
45. HTML Progress Tag
The <progress> tag in HTML is used to represent the progress of a task or process.
<progress></progress>
This HTML tag is used to indicate a short inline quotation in the document.
<q></q>
<s></s>
The <script> tag is used to embed or reference external JavaScript code within an HTML
document.
<script></script>
<section></section>
The <small> tag is used to indicate smaller text. This tag is mainly used for disclaimers,
and copyright.
<small></small>
This tag used to define text content as a span or an inline element. It is mainly to used
style the specific part of a text.
<span></span>
<table></table>
<tr></tr>
<td></td>
<th></th>
57. HTML Title Tag
This HTML tag is used to define the title of the HTML page.
<title></title>
The <textarea> tag is used to define a multiline text input control in the HTML
document..
<time></time>
<ul></ul>
<video src=""></video>