on
CSS
- Get link
- X
- Other Apps
Html formatting tags are used to make some text on your web pages to appear differently that normal text for better look and feel. In computer application, formatting data may associated with text data to create formatted text or we can say that formatting tags are used to change the style of text on a webpage there are following formatting elements were designed to designed to display special type of text.
<b>- Bold text
<strong>- Important text
<i>- Italic text
<em>- Emphasized text
<mark > Marked text
<small>- Smaller text
<del> Deleted text
<ins> Inserted text
<sub> Subscript text
<sup>- Superscript text
formatting tags in html
<!DOCTYPE html>
<html>
<body><center><strong><u>All Formating tag</u></strong> </center>
<p>This text is normal.</p>
<br><i>This text is italic.</i>
<br><em>This text is emphasized.</em>
<br><b>This text is Bold.</b>
<br><strong>This text is Stong.</strong>
<br>This <sup>text is superscript</sup><br>H <sub>2</sub>
<br><small>This is some smaller</small>
<br><big>This is some smaller</Big>
<br><Mark>This is some smaller/Mark>
<p>My favorite color is <del>blue</del> red.</p>
<p>My favorite color is <del>blue</del> <ins>red</ins>.</p>
</html>
formatting tags in html
<!Doctype html>
<html> and </html>
html is the root element.
<body> and </body>
body is main content area.
All visible content inside to the <body> tagText Formatting Tags
<center><strong><u> Formating tag</u></strong></center>
Paragraphs & Text Styles
<p>This text is normal.</p>
<br><i>This text is italic.</i>
<br><em>This text is emphasized.</em>
<br><b>This text is Bold.</b>
<br><strong>This text is Stong.</strong>
Superscript and Subscript
<br>This <sup>text is superscript</sup>
<br>H <sub>2</sub>
Text Size
<br><small>This is some smaller</small>
<br><big>This is some smaller</Big>
Deleted and
Inserted Text
<p>My favorite color is <del>blue</del>
red.</p>
Related Post :-how to create checkbox in html c program to print alphabet p star |
e
Comments
Post a Comment