Text Formatting Tags in HTML

You are currently viewing Text Formatting Tags in HTML

Different text formatting tags are available in HTML for style your text like as bold, italic, underline, overline, etc. These all the text formating is helped users to define our point as well and easily other people can understand. Different tags are used to format the text.

Here are different tags to format text are as follows:

Bold

This tag is used to display text in boldface style. This has an opening tag and a closing tag.

<html>
<head>
<title></title>
</head>
<body>
<p>This is tag use for text in <b> bold face </b></p>
</body>
</html>

Output

This is tag use for text in boldface.

Italic

This tag is used to display text in italic style. It is the opening tag (<i>) tag and closing tag(</i>). Be like this……

<html>
<head>
<title></title>
</head>
<body>
<p>This is tag use for text in <i>italic face</i></p>
</body>
</html>

Output

This is tag use for text in italic face

Underline

This tag is used to display text as underline. This tag has an opening tag (<u>) and a closing tag (</u>). Be like this……

<html>
<head>
<title></title>
</head>
<body>
<p>This is tag use for text in <u>Underlined text looks prominent</u></p>
</body>
</html>

Output

This is tag use for text in Underlined text looks prominent.

Superscript

This tag is used to display text as superscript like. This tag has an opening tag (<sup>) and a closing tag (</sup>). Be like this…..

<html>
<head>
<title></title>
</head>
<body>
<p>N<sup>2</sup></p>
</body>
</html>



output

N2

Subscript

This tag is used to display text as a subscript like. This tag has an opening tag <sub> and closing tag </sub>. Be like this…..

<html>
<head>
<title></title>
</head>
<body>
<p>N<sub>2</sub></p>
</body>
</html>

Output

N2

Text Formatting Tags Attributes:

These tags have no important attributes.

Reference

If you want to learn more about HTML then visit the official website: Visit

Visit the HTML tutorial list. And make strong your HTML concept. Click here. wuschools.com is always written about the HTML concept for the HTML lover. Ang writes about how HTML makes your life easy if you are a web site developer. We help you to continue your learning.

Leave a Reply