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.

People Also Read :- HTML STYLES : FULL EXPLAIN
People Also Read :- HTML PARAGRAPH : FULL EXPLAIN

"+y+""}else{if(A==5){c+='
  • '+w+""+y+"
  • "}else{if(A==6){c+='
  • "+w+'
    '+u+""+y+"
  • "}else{c+='
  • "+w+"
  • "}}}}}s.innerHTML=c+=""+y;d.callBack()};randomRelatedIndex=h;showRelatedPost=g;j(d.homePage.replace(/\/$/,"")+"/feeds/posts/summary"+e+"?alt=json-in-script&orderby=updated&max-results=0&callback=randomRelatedIndex")})(window,document,document.getElementsByTagName("head")[0]); //]]>

    0 comments:

    Post a Comment

    Follow on Twitter

    Linkedin

    Categories

    Contact Form

    Name

    Email *

    Message *

    Mad About Computer. Powered by Blogger.
    This site is in no way affiliated with or endorsed by specified business. It exists as a compendium of supporting information intended for informational purposes only. If you want to buy this website, please don't hesitate to contact us via e-mail: "d e n a c c 9 7 7 (at) g m a i l (dot) c o m" (delete spaces) or you can find and buy it on Afternic domain auctions.