डाउनलोड पी.डी.एफ. ई-बुक्स
HTML - HTML Formatting Elements

Formatting Elements ये पर विशिष्ट operation करता है | ये elements के प्रकार को बदलने के लिए इस्तेमाल किया जाता है |

Text Formatting के Elements निचे दिए गए है |

Formatting ElementsMeaning
<i>Italic text
<strong>Strong text
<b>Bold text
<em>Emphasized text
<small>Small text
<big>Big text
<mark>Marked text
<sub>Subscript text
<sup>Superscript text
<ins>Inserted text
<u>Underlined text
<strike>Striked text
<del>Deleted text

 

italic(<i>) Formatting Element in HTML

<i>Italic Text</i>
Italic Text

strong(<strong>) Formatting Element in HTML

<strong>Strong Text</strong>
Strong Text

bold(<b>) Formatting Element in HTML

<b>Bold Text</b>
Bold Text

emphasized(<em>) Formatting Element in HTML

<em>Emphasized Text</em>
Emphasized Text

small(<small>) Formatting Element in HTML

<small>Small Text</small>
Small Text

big(<big>) Formatting Element in HTML

<big>Big Text</big>
Big Text

marked(<mark>) Formatting Element in HTML

<mark>Marked Text</mark>
Marked Text

subscript(<sub>) Formatting Element in HTML

<sub>Subscript Text</sub>
Subscript Text

superscript(<sup>) Formatting Element in HTML

<sup>Superscript Text</sup>
Superscript Text

inserted(<ins>) Formatting Element in HTML

<ins>Inserted Text</ins>
Inserted Text

underlined(<u>) Formatting Element in HTML

<u>Underlined Text</u>
Underlined Text

striked(<strike>) Formatting Element in HTML

<strike>Striked Text</strike>
Striked Text

deleted(<del>) Formatting Element in HTML

<del>Deleted Text</del>
Deleted Text

Default CSS for Formatting Elements in HTML

formatting elements में जब कोई text दिया जाता है तब वो text कुछ अलग-अलग तरीके से display होता है | उसका कारण होता है उसे दी हुई CSS(Cascading Style Sheet) | इन elements को पहले से ही default css दी गयी है, इसके कारण वो अलग-अलग प्रकार में display होते है |

Formatting ElementsMeaningDefault CSS
<i>Italic texti{font-style: italic;}
<strong>Strong textstrong{font-weight: bold;}
<b>Bold textb{font-weight:bold;}
<em>Emphasized textem{font-style: italic;}
<small>Small textsmall{font-size: smaller;}
<big>Big textbig{font-size: larger;}
<mark>Marked textmark {background-color: yellow;
color: black;}
<sub>Subscript textsub{vertical-align: sub;
font-size: smaller;}
<sup>Superscript textsub{vertical-align: super;
font-size: smaller;}
<ins>Inserted textins{text-decoration: underline;}
<u>Underlined textu{text-decoration: underline;}
<strike>Striked textstrike{text-decoration: line-through;}
<del>Deleted textdel{text-decoration: line-through;}