Formating in HTML

The are following elements which comes in formatting in HTML describe as
 bistrongem,  marksmalldelins,  subsup
These were introduced in the old days of the Web as a way to provide typesetting instructions (bold, italic, underline, strikethrough, and smaller text, respectively).

Bold and Strong format

<b> I'm bold text. </b>
<strong> I'm strong text. </strong>

Output of above code

I'm bold text.
I'm strong text.

Note:

The display of <b> and <strong> tag is pretty same but they have different in meaning in SEO. We will learn about SEO in our SEO course. b tag represent the bold texts but the strong tag represent that is is an important text. So keep in mind about the difference of these tags.


Italic and Emphasized

<i> I'm italic text. </i>
<em> I'm emphasized text. </em>

Output of above code

I'm italic text.
I'm emphasized text.

Note:

The display of <i> and <em> tag is pretty same but they have different in meaning in SEO. We will learn about SEO in SEO course.So keep in mind about the difference of these tags.


Mark and Deleted

<mark> I'm marked text. </mark>
<deleted> I'm deleted text. </deleted>

Output of above code

I'm marked text.
I'm deleted text.

Note:

In this example two formatting elements are used. <mark> is used for some special text to highlight with background color. Second is <del> is used to show a strike line text.


Small and Underlined

<small> I'm small text. </small>
<u> I'm underline text. </u>

Output of above code

I'm small text.
I'm underline text.

Note:

In this example two formatting elements are used. <small> is used for small text. Second is <u> is used to a line under the text.


Superscript and Subscript

<p> I'm<sup>superscript</sup>text. </p>
<p> I'm<sub>subscript</sub>text. </p>

Output of above code

I'msuperscripttext

I'msubscripttext

Note:

In this example two formatting elements are used. <sup> superscript is a text half of above from normal text and <sub> subscript is a text half of below from the normal text.








The Best

Comment here

If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.