Commonly used tags in HTML
HTML Tag | Syntax | Description |
---|---|---|
<div> |
<div>...</div> |
Defines a division or section in an HTML document. |
<p> |
<p>...</p> |
Defines a paragraph. |
<a> |
<a href="...">...</a> |
Defines a hyperlink. |
<img> |
<img src="..." alt="..."> |
Embeds an image. |
<ul> |
<ul><li>...</li></ul> |
Defines an unordered list. |
<ol> |
<ol><li>...</li></ol> |
Defines an ordered list. |
<li> |
<li>...</li> |
Defines a list item. |
<table> |
<table>...</table> |
Defines a table. |
<tr> |
<tr>...</tr> |
Defines a table row. |
<th> |
<th>...</th> |
Defines a table header cell. |
<td> |
<td>...</td> |
Defines a table data cell. |
<form> |
<form>...</form> |
Defines an HTML form for user input. |
<input> |
<input type="..."> |
Defines an input control within a form. |
<button> |
<button>...</button> |
Defines a clickable button. |
<h1> –<h6> |
<h1>...</h1> |
Define headings of different levels. |
<span> |
<span>...</span> |
Defines a generic inline container. |
<label> |
<label for="...">...</label> |
Defines a label for an input element. |
<iframe> |
<iframe src="..."></iframe> |
Embeds an inline frame for external content. |
Most commonly used tags in HTML
Most commonly used tags in HTML refer to HTML elements frequently utilized for structuring web content. These include <div> for division, <p> for paragraphs, <a> for hyperlinks, <img> for images, and others essential for building web pages, forming the basis of web development.
HTML contains lots of predefined tags. Some of them are described below.