×

Most Commonly used Tags in HTML

In this tutorial, we'll look at the most popular HTML tags. We know HTML is a fundamental requirement for creating a website. As a result, it is essential to remember all the HTML tags.

HTML has numerous predefined tags. Most are listed below:

Document Structure Tag:

1. HTML tag: The HTML tag is the base of the HTML document and is used to indicate that the content is HTML.

Syntax:

<html> Expressions…… </html>

HTML Code:

<html>
	<head>
		<title>Title of your web page </title>
	</head>
	<body> Contents of HTML web pages </body>
</html>

Output:

Most Commonly used Tags in HTML

2. Head tag: The head tag is utilized to possess all of the HTML file's head elements. It includes the title, style, meta, and so on tags.

Syntax: 

<head> expression of facts... </head>

HTML Code:

<head> Includes components that describe the content </head>

Output:

Most Commonly used Tags in HTML

3. Body tag: The body tag is utilized to describe the content of an HTML document. This includes photos, tables, lists, and so on.

Syntax:

<body>> expression of facts... </body>

HTML Code:

<body>Our HTML page's content</body>

Output:

Most Commonly used Tags in HTML

4. Title tag: The title element is used to specify the title of an HTML document.

Syntax:

<title> expression of facts... </title>

HTML Code:

<title> Name of our tab </title>

Output:

Most Commonly used Tags in HTML

Content container tag:

1. Heading tag: The heading tag is utilized to specify the title of an HTML document.

Syntax:

<h1> expression of facts... </h1>
<h2> expression of facts... </h2>
<h3> expression of facts... </h3>
<h4> expression of facts... </h4>
<h5> expression of facts... </h5>
<h6> expression of facts... </h6>

HTML Code:

<h1> 1st Heading </h1>
<h2> 2nd Heading </h2>
<h3> 3rd Heading </h3>
<h4> 4th Heading </h4>
<h5> 5th Heading </h5>
<h6> 6th Heading </h6>

Output:

Most Commonly used Tags in HTML

2. Paragraph tag:  In an HTML document, the paragraph tag is utilized to specify paragraph content.

Syntax:

<p> expression of facts... </p>

HTML Code:

<p> tutorialandexamples: Portal for computer science, engineering, and information technology students, as well as individuals looking to change careers in the IT profession. </p>

Output:

Most Commonly used Tags in HTML

3. Emphasis tag: The emphasis tag is utilized to make text stand out.

Syntax:

<em> expression of facts... </em>

HTML Code:

<em> TutorialandExamples </em>

Output:

Most Commonly used Tags in HTML

4. Bold tag: The bold tag is utilized in HTML documents to designate bold material.

Syntax:

<b> expression of facts... </b>

HTML Code:

<b> Hey Mr. Saha </b>

Output:

Most Commonly used Tags in HTML

5. Italic tag: This tag is utilized to style the content italic.

Syntax:

<i> expression of facts... </i>

HTML Code:

<i> TutorialandExamples </i>

Output:

Most Commonly used Tags in HTML

6. Small (text) tag: This tag serves to specify the content's small font size.

Syntax:

<small> expression of facts... </small>

HTML Code:

<small> Hello Peeps </small>

Output:

Most Commonly used Tags in HTML

7. Underline tag: The underline tag serves to make the contents underlined.

Syntax:

<u> expression of facts... </u>

HTML Code:

<u> TutorialandExamples </u>

Output:

Most Commonly used Tags in HTML

8. Deleted Text tag: This tag serves to indicate deleted text. This crosses across the words.

Syntax:

<strike> expression of facts... </strike>

HTML Code:

<strike> tutorialandexamples </strike> TutorialandExample

Output:

Most Commonly used Tags in HTML

9. Anchor tag: The anchor tag serves to connect one page to another.

Syntax:

<a href="..."> expression of facts... </a>

HTML Code:

Visit <a href="https://www.tutorialandexample.com/">

TutorialandExample</a> to explore about Computer Science based subjects.

Output:

Most Commonly used Tags in HTML

10. List tag: It serves to organise the information in an order. 

Syntax:

<li> expression of facts... </li>

HTML Code:

<li> 1st item </li>
<li> 2nd item </li>

Output:

Most Commonly used Tags in HTML

11. Ordered List tag: The Ordered List tag serves to arrange the contents in a specific order.

Syntax:

<ol> expression of facts... </ol>

HTML Code:

<ol>
	<li> 1st item </li>
	<li> 2nd item </li>
	<li> 3rd item </li>
	<li> 4th item </li>
</ol>

Output:

Most Commonly used Tags in HTML

12. Unordered List tag: Unordered list tag serves to list items in no particular sequence.

Syntax:

<ul> expression of facts... </ul>

HTML Code:

<ul>
	<li> 1st item </li>
	<li> 2nd item </li>
	<li> 3rd item </li>
	<li> 4th item </li>
</ul>

Output:

Most Commonly used Tags in HTML

13. Comment tag: Comment tag specifies the comment in an HTML document. The browser does not display it.

Syntax:

<!—Any Comment we want to put -->

HTML Code:

<!-- Write any comment here. This will not show on browser. -->

14. Scrolling Text tag: Scrolling text tag serves to scroll text or graphic information.

Syntax:

<marquee> expression of facts... </marquee>

HTML Code:

<marquee bgcolor="sky blue" loop="-1"
scrollamount="2" width="100%">
Disclaimer</marquee>

Output:

Most Commonly used Tags in HTML

15. Center tag: The center tag serves to position the content in the centre of the page.

Syntax:

<center> expression of facts... </center>

HTML Code:

<center> TutorialandExample </center>

Output:

Most Commonly used Tags in HTML

16. Font tag: In an HTML document, the font tag specifies the font size, font colour, and font family.

Syntax:

<font> expression of facts... </font>

HTML Code:

<font face = "Comic sans MS" size =" 4 ">Hello Chilliee</font>

Output:

Most Commonly used Tags in HTML

Empty (Non-Container) Tags:

  1. Line Break tag: The line break tag serves to break a line.

Syntax:

<br>

HTML Code:

TutorialandExample<br> Portal for computer science, engineering, and information technology students, as well as individuals looking to change careers in the IT profession.

Output:

Most Commonly used Tags in HTML

2. Image tag: The image tag is employed to include image elements in HTML pages.

Syntax:

<img>

HTML Code:

<img src="https://www.tutorialandexample.com/images/logo.png" alt="Logo of TutorialandExample Website">

Output:

Most Commonly used Tags in HTML

3. Link tag: The link tag serves as a connect to content from another domain.

Syntax:

<link>

HTML Code:

<head>
<link rel="stylesheet" href="style.css">
</head>

4. Horizontal rule tag: This tag is found in HTML documents to display a horizontal line.

Syntax:

<hr/>

HTML Code:

<hr width="100%" size="2.5" color="Red" />

Output:

Most Commonly used Tags in HTML

5. Meta tag: The meta tag specifies the page description. For instance, last modifier, authors, etc.

Syntax:

<meta> expression of facts... <meta>

HTML Code:

<meta name="Description"
	content="Our website's description">
<meta name="keywords"
	content="Keywords that refer our website">

6. Table tag: A table tag is applied to an HTML page to generate a table.

Syntax:

<table> expression of facts... </table>

HTML Code:

  <table border="5" cellpadding="3" cellspacing="1.5" width="40%">
  <tr> <td>Column no 1</td>
  <td>Column no 2</td> </tr> </table>

Output:

Most Commonly used Tags in HTML

7. Tr tag: The Tr tag is applied to define an HTML table row.

Syntax:

<tr> expression of facts... </tr>

HTML Code:

<table>
  <tr>
  	<th>Day</th>
  	<th>Subject</th>
  </tr>
  <tr>
  	<td>1</td>
  	<td>TOC</td>
  </tr>
  <tr>
    	<td>2</td>
      	<td>OOP Lab</td>
  </tr>
  <tr>
    	<td>3</td>
      	<td>COA</td>
  </tr>
  <tr>
      <td>4</td>
        <td>OS</td>
  </tr>
  </table>

Output:

Most Commonly used Tags in HTML

8. Th tag: The header cell in a table is defined by th tag. It sets the content's bold and centre properties by default.

Syntax:

<th> expression of facts... </th>

HTML Code:

  <table>
  <tr>
  	<th>Day</th>
  	<th>Subject</th>
  </tr>
  <tr>
  	<td>1</td>
  	<td>TOC</td>
  </tr>
  <tr>
    	<td>2</td>
      	<td>OOP Lab</td>
  </tr>
  <tr>
    	<td>3</td>
      	<td>COA</td>
  </tr>
  <tr>
      <td>4</td>
        <td>OS</td>
  </tr>
  </table>

Output:

Most Commonly used Tags in HTML

9. Td tag: The Td tag is applied to specify the standard cell in a Html file.

Syntax:

<td> expression of facts... </td>

HTML Code:

<table>
  <tr>
  	<td>Cell1</td>
    <td>Cell2</td>
  	<td>Cell3</td>
    <td>Cell4</td>
    <td>Cell5</td>
    <td>Cell6</td>
    <td>Cell7</td>
  </tr>
  </table>

Output:

Most Commonly used Tags in HTML

Input Tags:

1. Form tag: Its function is to generate a user-friendly HTML form.

Syntax:

<form> expression of facts... </form>

HTML Code:

<form action="mailto:xyz@gmail.com ">
    Name: <input name="Your Name" value="" size="75"><br>
    Email: <input name="Email ID" value="" size="75"><br>
    <br><center><input type="submit"></center>
    </form>

Output:

Most Commonly used Tags in HTML

2. Submit input tag: Its purpose is to accept user input.

Syntax:

<input>

HTML Code:

<form action="mailto:xyz@gmail.com ">
    Name: <input name="Your Name" value="" size="75"><br>
    Email: <input name="Email ID" value="" size="75"><br>
    <br><center><input type="submit"></center>
    </form>

Output:

Most Commonly used Tags in HTML

3. Dropdown option tag: The dropdown option tag is applied to choose an option from a drop-down panel.

Syntax:

<option> expression of facts... </option>

HTML Code:

  <center> Select an option:<select>
      <option>option A</option>
      <option selected>option B</option>
      <option>option C</option>

Output:

Most Commonly used Tags in HTML

4. Radio button tag: The radio button tag allows us to select only one item from a list of options.

Syntax:

<input>

HTML Code:

<form method=post action="/cgibin/example.cgi">
Select an option:<br>
<input type="radio" name="option"> Choose Option A
<input type="radio" name="option" checked> Choose Option B
<input type="radio" name="option"> Choose Option C

Output:

Most Commonly used Tags in HTML

Browsers that are compatible:

  • Google Chrome
  • Opera
  • Internet Explorer
  • Safari
  • Firefox

HTML is the backbone of web pages and serves to structure webpages and web applications. Web browsers acquire HTML documents from a web server or internal memory and convert them into multimedia web pages. HTML logically explains the structure of a web page and initially provides hints for the document's appearance. HTML components are the foundation of HTML pages. Images and other objects, such as interactive forms, can be embedded within the produced page using HTML structures. HTML allows you to generate organized documents by expressing structural semantics for text elements like headings, paragraphs, lists, links, quotations, and so on. Tags, which are written in angle brackets, delineate HTML components. Tags like <image/> and <input /> insert content into the page immediately. Other tags, such as p>, surround and offer information about the content of the document and may incorporate other tags as sub-elements. Browsers do not display HTML tags but rather use them to decipher the page's content.


Related Topics

HTML <source> tag

For media attributes, such as <video> tag, <audio> tag, and <picture> tag, we use the <source> tag in html for adding such type of multiple media html elements in our...

4 minutes read.

HTML Links

It consist of anchor element which is used to create a link between a source anchor and destination anchor. The anchor tag can be embedded between text, image, video or...

2 minutes read.

Responsive HTML5 and CSS3 Tutorial

Introduction to HTML5 Tutorial HTML5 is the latest and upgraded version of HTML. HTML is a hypertext markup language. Technically, it is not a programming language. It is a markup language. HTML...

17 minutes read.

HTML Forms

Forms are required when we want to collect data from the user. Html forms consists of different fields to take user inputs such as: input, text area, checkbox, password, radio...

4 minutes read.

How to insert spaces/tabs in text using HTML/CSS

What is HTML? HTML or HyperText Markup Language is used to design web pages. It was released in 1993. The file extension name for HTML file is “.html”. An HTML file...

4 minutes read.

Html <colgroup> Tag

A HTML table's column group is specified by the "colgroup" tag. If you want to apply various properties to one or more <col> elements in an HTML table, then you...

4 minutes read.

HTML Youtube

<object> element: It embed the object within the HTML documents and embed plug-ins such as Java applets, PDF readers, Flash Players etc in web pages. Example: <object width="100" height="100" data="bookmark.swf"></object> <embed> element: It defines an embedded...

1 minute read.

HTML <video> Tag

The Video tag in HTML is used to play video on a media player on the web page. We can also insert an audio by the video tag, but audio...

6 minutes read.

HTML Font Size

The HTML <font> tag uses the size attribute to specify the size of the text. We can set the size attribute’s value from 1 to 7. The default size of...

4 minutes read.

Div Tag in HTML

In HTML, ‘div’ is a tag that specifies division or section in HTML document. But before going in detail of it, let’s first understand about tags in HTML. The tag...

8 minutes read.

Caption Tag in HTML

Caption Tag in HTML: The < caption > tag in HTML describes the heading of a table in the HTML text. Browsers typically make the text found above the table...

4 minutes read.

HTML Tutorial

Introduction This HTML tutorial helps beginners and professionals to learn HTML easily. HTML is a widely used web technology for website development. It stands for Hyper Text Markup Language. It is mainly used to...

7 minutes read.

HTML Nested Table

HTML nested table refers to a table that is created inside another table. The table is in the form of rows and columns. From left to right are called horizontal rows,...

5 minutes read.

HTML <section> tag

The section element in HTML is used to define sections in a document. Syntax of Section Tag: <body> <h1>……….</h1> <section> <h2>……….</h2> <p> …………………………</p> </section> <section> <h2>………..</h2> <p>…………………………. <p> </section> </body> Examples of Section Tag Example 1: In this example, we use the HTML "section" element...

3 minutes read.

HTML Search Box

The HTML search box is also known as the search bar. It is an input text field that is used to search the content. If the users want to explore...

7 minutes read.

HTML 5 Tutorial

What is HTML5? HTML5 is a programming language which stands for the acronym Hyper Text Markup Language 5. It is program that enables the appearance of web pages to be changed, as well as changes...

5 minutes read.

HTML <span> tag

The span tag in HTML is used as an inline container element to mark up a specific or special chunk of a text or a section of a page. If you...

2 minutes read.

How to append HTML code to a div using JavaScript?

In HTML, we have a div tag which is used to create a box where we can put a lot of other tags. So it works like a container. So,...

4 minutes read.

HTML Video

HTML VIDEO: HTML5 has introduced the <video> tag to embed video into the webpage directly without using the plug-ins.   Syntax: <video attributes >     <source src="address" type="video/mp4">     Your browser does not support the video tag.   </video> <video width="320" height="240" controls>     <source src="mountain.mp4" type="video/mp4">     Your browser does not support the video tag.   </video> Output: ← Prev ...

1 minute read.

HTML Text Format

Introduction HTML may format text in two different ways. The HTML tags define a text property to make it appear one way or another. A text element may also be formatted...

7 minutes read.