![]() |
HTML contains several elements for defining text with a special meaning. HTML Formatting is a process of formatting text for better look and feel. HTML provides us ability to format text without using CSS. There are many formatting tags in HTML. These tags are used to make text bold, italicized, or underlined. There are almost 14 options available that how text appears in HTML and XHTML. In HTML the formatting tags are divided into two categories:
NOTE: There are some physical and logical tags which may give same visual appearance, but they will be different in semantics. Here, we are going to learn 14 HTML formatting tags. Following is the list of HTML formatting text.
|
<p><b>This text is bold</b></p>
<p><i>This text is italic</i></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<p><b>This text is bold</b></p>
<p><i>This text is italic</i></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>
</body>
</html>
What is HTML Text Formatting | HTML Formatting |
What is HTML Formatting Elements | HTML Formatting |
How to create HTML <b> and <strong> Elements | HTML Formatting |
How to create HTML <strong> Elements | HTML Formatting |
How to create HTML <i> Elements | HTML Formatting |
How to create HTML <em> Elements | HTML Formatting |
How to create HTML <small> Element | HTML Formatting |
How to create HTML <mark> Element | HTML Formatting |
How to create HTML <del> Element | HTML Formatting |
How to create HTML <ins> Element | HTML Formatting |
How to create HTML <sub> Element | HTML Formatting |
How to create HTML <sup> Element | HTML Formatting |
Example of HTML Text Formatting | HTML Formatting |
Full Example of HTML Text Formatting | HTML Formatting |
Read Full: | HTML Formatting |
Category: | Web Tutorial |
Sub Category: | HTML Formatting |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 103 |
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_formatting_intro