If tutorials available on this website are helpful for you, please whitelist this website in your ad blocker😭 or Donate to help us ❤️ pay for the web hosting to keep the website running.
यह एक ऐसा process है जिससे हम text को format करके उसे better look और feel देते है। html हमें यह ability देता है की हम CSS के बिना text को format करे।
html मै कई सारे formatting tags है जो की text को bold, italicized, or underlined करते है।
Some html format tags are-
<font> The <font> tag is used to change the format of the text on the web page. <b> The <b> tag will bold the text inside the tag. <i> The <i> tag will italicize the text inside the tag. <u> The <u> tag will underline the text inside the tag.
<b> - Bold text <strong> - Important text <i> - Italic text <em> - Emphasized text <mark> - Marked text <small> - Smaller text <del> - Deleted text <ins> - Inserted text <sub> - Subscript text <sup > - Superscript text
<b> element bold text को define करता है।
<b>This text is bold</b>
Output :
This text is bold
<strong> element strong text को define करता है।
<strong>This text is strong</strong>
Output :
This text is strong
<i> element italic text को define करता है।
<i>This text is italic</i>
Output :
This text is italic
<em> element emphasized text को define करता है।
<em>This text is emphasized</em>
Output :
This text is emphasized
<small> element small text को define करता है।
<small>This text is small</small>
Output :
This text is small
<big> element big text को define करता है।
<big>This text is big</big>
Output :
This text is big
<mark> element mark(highlight) text को define करता है।
<mark>This text is highlighted</mark>
Output :
This text is highlighted
<del> element deleted text को define करता है।
<del>This text is deleted</del>
Output :
This text is deleted
<ins> element inserted text को define करता है।
<ins>This text is inserted</ins>
Output :
This text is inserted
<sub> element subscript text को define करता है।
<span>This text is <sub>subscripted</sub></span>
Output :
This text is subscripted
<sup> element superscripttext को define करता है। या कह सकते हैं कि यह power (घात) को represent करता है।
<span>This text is <sup>superscripted</sup></span>
Output :
This text is superscripted
File : html_formatting.html
<!DOCTYPE html>
<html>
<head>
<title>Formatting elements example</title>
</head>
<body>
<div>This makes ur <u> text </u> underlined <br/>
This is a <b> bold </b> man <br/>
This is a <strong> Strong </strong> creature <br/>
I stands for <i> italics </i> <br/>
This will <em> emphasize </em> your text <br/>
This will <mark> highlight </mark> your word <br/>
This is a <small> small </small> island <br/>
This is a <big> Big </big> river <br/>
I want red color, not <del> green </del> <br/>
Please insert <ins> THIS </ins> instead of THAT <br/>
H<sub> 2 </sub> O <br/>
x <sup> 3 </sup> <br/>
I want red color, not <strike> green </strike> <br/>
This is a <tt> different </tt> font </div>
</body
</html>
I hope अब आप HTML में formatting समझ गए होंगे।