Skip to main content

Basic Formatting Tags of HTML - 1



Bold Text


<b></b> tag is used to apply bold on the text appearing inside the tag.  

Example

<html>
<head>
<title>
bold text
<body>
<b>Education is one of the precious thing of the world</b>
</body>
</html>


Italic Text


<i></i> tag is used to apply italic on the text appearing inside the tag.

Example

<html>
<head>
<title>
italic  text
</title>
<body>
<i>Education is one of the precious thing of the world</i>
</body>
</html>

Underline the Text


<u></u> tag is used to apply to underline the text appearing inside the tag.

Example

<html>
<head>
<title>
underline the text
</title>
</head>
<body>
<underline>education</underline>
</body>

</html>

Superscript the Text 


<sup></sup> tag is used to display the text or figure or symbols above the baseline, slightly of a small size than normal text. It is used to display mathematical formulas, footnotes, and end notes.

Example

<html>
<head>
<title>
superscript the text
</title>
</head>
<body>
45<sup>5</sup>
</body>
</html>