Open In App

How to indicate text is important in HTML ?

In this article, we will know how to indicates the important text or mark texts as important in HTML. There are several HTML elements that are used for defining text with a special meaning. There are several formatting elements in HTML, some of them are <strong>, <b>, <i>, <em>, <mark>, <small>, <sup>, <sub>, <ins>, <del>.These are the parsed tag that are used to display the importance of the text.

Syntax:



<strong>Text Content</strong>
<b>Bold Text</b>
<i>Italic text</i>
<em>Emphasized Text</em>
<mark>Marked Text</mark>
<small>Smaller Text</small>
<sup>Superscripted Text</sup>
<sub>Subscripted Text</sub>
<ins>Inserted Text</ins>
<del>Deleted Text</del>

We will utilize the above tags to make the important text & also understand their implementation in HTML.

Example: This example illustrates the use of the various HTML tags for making the text as important.






<!DOCTYPE html>
<html>
 
<head>
    <title>Important texts</title>
</head>
 
<body>
    <h1>GeeksforGeeks</h1>
    <h3>How to indicate the text as important in HTML</h3>
    <hr />
    <!-- normal text-->
     
 
<p>This is normal text</p>
 
 
 
    <!-- strong tag-->
     
 
<p><strong>Important Text using strong tag</strong></p>
 
 
 
    <!-- bold tag-->
     
 
<p><b>Bold text using b tag</b></p>
 
 
 
    <!-- italic tag-->
     
 
<p><i>Italic text using i tag</i></p>
 
 
 
    <!-- emphasized tag-->
     
 
<p><em>Emphasized text using em tag</em></p>
 
 
 
    <!-- mark tag-->
     
 
<p><mark>Marked text using mark tag</mark></p>
 
 
 
    <!-- italic tag-->
     
 
<p><i>Italic text using i tag</i></p>
 
 
 
    <!-- small tag-->
     
 
<p><small>Small text using small tag</small></p>
 
 
 
    <!-- superscripted tag-->
     
 
<p><sup>Superscripted text</sup> using sup tag</p>
 
 
 
    <!-- subscripted tag-->
     
 
<p><sub>Subscripted text</sub> using sub tag</p>
 
 
 
    <!-- inserted tag-->
     
 
<p><ins>Inserted text</ins> using ins tag</p>
 
 
 
    <!-- deleted tag-->
     
 
<p><del>Deleted text</del> using del tag</p>
 
 
</body>
 
</html>

Output:

Supported Browsers:


Article Tags :