9)<del> – Deleted Text
The <del> element has opening and closing tag. <del> … </del>. Any texts that appears between opening <del> tag and closing </del> tag is shown in strike texts.
The HTML <del> element defines that the text has been deleted from the document.
Syntax:
<del> ... </del>
Code:
<!DOCTYPE html>
<html>
<head>
<title>Del Text</title>
</head>
<body>
<p> This is a normal text.</p>
<p> This is a <del> normal </del> deleted text.</p>
</body>
</html>
Output:
10) <ins> – Inserted Text
The <ins> element has opening and closing tag. <ins> … </ins>. Any texts that appears between opening <ins> tag and closing </ins> tag is shown in underline inserted texts.
The HTML <ins> element defines that the text has been inserted into a document.
Syntax:
<ins> ... </ins>
Code:
<!DOCTYPE html>
<html>
<head>
<title>Ins Text</title>
</head>
<body>
<p> This is a normal text.</p>
<p> This is a <ins> inserted </ins> text.</p>
</body>
</html>
Output:
11) <sub> – Subscript Text
The <sub> element has opening and closing tag. <sub> … </sub>. Any texts that appears between opening <sub> tag and closing </sub> tag is shown in below the normal text and also appear in smaller text.
The HTML <sub> element defines subscript text.
Syntax:
<sub> ... </sub>
Code:
<!DOCTYPE html>
<html>
<head>
<title>Ins Text</title>
</head>
<body>
<p> This is a normal text.</p>
<p> This is a <sub> subscripted </sub> text.</p>
<p>
The good example of using subscripted text is in chemical formulas.
For example: H<sub>2</sub>O , H<sub>2</sub>SO<sub>4</sub> etc.
</p>
</body>
</html>
Output:
Continue Reading on the next page…