6/26/20

HTML TEXT FORMATTING



HTML TEXT FORMATTING

In Html, there are several elements that define text with a special meaning. 

Examples:- 

<b>, <strong>, <sub>, <sup>, <i>, <em>, <mark>, <small>, <del>, <ins> 

<b> and <strong> elements in Html

 <b> tag is known as the Bold tag. It is used to make your text bold.

Example:-

<p> This is a <b> Bold (Adding some more text to show you) </b> tag. </p>

Output:-


<strong> tag is also used to do text bold. But <strong> element define text with strong importance

Example:-

<p> This is a <strong> Example of Strong Tag. </strong> </p>

Output:-

<sub> and <sup> elements in Html

Subscript tag

In Html, <sub> tag is known as Subscript text. It is used to appear text character smaller and below the normal text. It is used to write a chemistry formula like H2O, C6H12O6, etc. Let’s see through an example.

Example:-

<p>This is <sub> subscripted </sub> text. </p>

Output:-


Superscript tag

In Html, <sup> tag is known as Superscript text. It is used to appear text character smaller and above the normal text. It is used to write math equation like ax3 + by2 + c = 0 etc. Let’s see through an example.

Example:-

<p>This is <sup> superscripted </sup> text. </p>

Output:-



Some other formatting Html Elements:-

  • <b> - The <b> tag is known as bold tag. It is used to make text bold comparing to other normal text.
  • <strong> - It defines that text is Important text.
  • <i> - The <i> tag is used to make text italic.
  • <em> - The HTML em element marks text that has stress emphasis.
  • <mark> - It is used to make your text Marked or Highlight.
  • <small> - It indicates that your text is smaller text.
  • <del> - It indicated that your text is deleted from documents. The browser usually strikes a line through the text.
  • <ins> - It indicated that a text has been inserted into a  document. 
  • <sub> - It is used to text small and below the normal text.
  • <sup> - It is used to text small and above the normal text.


Friends, I have not told you about all the formatting in this article because there is nothing tough in it. Anyone can check the example and apply it by looking at one of those two examples.

See friends, the more you practice, the more you know about Html, then according to me, you should practice more and more.


0 comments:

Post a Comment

Like us on facebook

blogger templatesblogger widgets

Follow on Twitter

Linkedin

Categories

Contact Form

Name

Email *

Message *

Mad About Computer. Powered by Blogger.