HTML - HTML Formatting Elements
Formatting Elements ये पर विशिष्ट operation करता है | ये elements के प्रकार को बदलने के लिए इस्तेमाल किया जाता है |
Text Formatting के Elements निचे दिए गए है |
Formatting Elements | Meaning |
---|---|
<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> | |
<del> |
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>
deleted(<del>) Formatting Element in HTML
<del>Deleted Text</del>
Default CSS for Formatting Elements in HTML
formatting elements में जब कोई text दिया जाता है तब वो text कुछ अलग-अलग तरीके से display होता है | उसका कारण होता है उसे दी हुई CSS(Cascading Style Sheet) | इन elements को पहले से ही default css दी गयी है, इसके कारण वो अलग-अलग प्रकार में display होते है |
Formatting Elements | Meaning | Default CSS |
---|---|---|
<i> | Italic text | i{font-style: italic;} |
<strong> | Strong text | strong{font-weight: bold;} |
<b> | Bold text | b{font-weight:bold;} |
<em> | Emphasized text | em{font-style: italic;} |
<small> | Small text | small{font-size: smaller;} |
<big> | Big text | big{font-size: larger;} |
<mark> | Marked text | mark {background-color: yellow; color: black;} |
<sub> | Subscript text | sub{vertical-align: sub; font-size: smaller;} |
<sup> | Superscript text | sub{vertical-align: super; font-size: smaller;} |
<ins> | Inserted text | ins{text-decoration: underline;} |
<u> | Underlined text | u{text-decoration: underline;} |
<strike> | strike{text-decoration: line-through;} | |
<del> | del{text-decoration: line-through;} |