There are many Text formatting tags available in HTML. You can format your text as:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyC2AtVSdssSiOg45oBcsF1m8ky3rJm3xwLRN2OAYYwVByGEXARjRpXyDnnj23jl9Cc3v6Ky33qbh_itiY7rXLtInL_izp9oX43B8Kn_xyHrYYBJZKZWu4md5oAAUz0RpMN2e8PLWpzg8/s1600/html+formatting+tags+syntax.gif)
<u> tag is used for formatting the text as underline text. You place the text within <u> and </u> tags to make it underline.
<sup> tag is used for formatting the text as superscript text. You place the text within <sup> and </sup> tags to make it superscript.
<sub> tag is used for formatting the text as bold text. You place the text within <sub> and </sub> tags to make it subscript.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJVqiRkkVhODwDWi98NZwLcfl2xlM9Sjcu9K2cnYubgx2fPWfsvfr5Jvek61H_8JEkd8KXGC2HDxYkakFD0DxMSO4-hLn-zaYfDtQGoQBVwvaouVbf0CO1n2o60vP8efqTcChS5xC1Gwo/s1600/html_formatting_tags_output.gif)
- Bold Text
- Italic Text
- Underline Text
- Superscript Text
- Subscript Text
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyC2AtVSdssSiOg45oBcsF1m8ky3rJm3xwLRN2OAYYwVByGEXARjRpXyDnnj23jl9Cc3v6Ky33qbh_itiY7rXLtInL_izp9oX43B8Kn_xyHrYYBJZKZWu4md5oAAUz0RpMN2e8PLWpzg8/s1600/html+formatting+tags+syntax.gif)
1. Bold Text
<b> tag is used for formatting the text as bold text. You place the text within <b> and </b> tags to make it bold.2. Italic Text
<i> tag is used for formatting the text as italic text. You place the text within <i> and </i> tags to make it italic.3. Underline Text
<u> tag is used for formatting the text as underline text. You place the text within <u> and </u> tags to make it underline.
4. Superscript Text
<sup> tag is used for formatting the text as superscript text. You place the text within <sup> and </sup> tags to make it superscript.
5. Subscript Text
<sub> tag is used for formatting the text as bold text. You place the text within <sub> and </sub> tags to make it subscript.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJVqiRkkVhODwDWi98NZwLcfl2xlM9Sjcu9K2cnYubgx2fPWfsvfr5Jvek61H_8JEkd8KXGC2HDxYkakFD0DxMSO4-hLn-zaYfDtQGoQBVwvaouVbf0CO1n2o60vP8efqTcChS5xC1Gwo/s1600/html_formatting_tags_output.gif)
HTML Formatting Tags Source Code Examples
HTML Formatting Tags | Output in web browser |
---|---|
<b>Bold Text</b> <i>Italic Text</i> <u>Underline Text</u> Superscript Example X Squared= X<sup>2</sup> Subscript Example X base 2= X<sub>2</sub> | Bold Text Italic Text Underline Text Superscript Example X Squared= X2 Superscript Example X base 2= X2 |
Comments