Formatting in HTML

HTML me kuch special elements hote hain jo text ko sirf stylish nahi, meaningful bhi banate hain. Usko ham formatting in HTML bolte hai. 

Example:

Formatting in HTML


HTML Formatting Elements

Chalo ab ham formatting in HTML examples se sikte hai. Diye gaye elements special type ka text dikhane ke liye use hote hain:

  • <b> – Bold text
  • <strong> – Important text
  • <i> – Italic text
  • <em> – Emphasized text
  • <mark> – Highlighted text
  • <small> – Chhota text
  • <del> – Deleted text
  • <ins> – Inserted text
  • <sub> – Subscript
  • <sup> – Superscript

HTML <b> and <strong> Elements

<b> text ko bold karta hai, extra importance nahi deta.

Example:

bold element

<strong> text ko bold bhi karta hai aur batata hai ki ye important hai.

Example:

strong element


HTML <i> and <em> Elements

<i> text ko italic kar deta hai. Yeh Alternate voice, technical term, foreign word, thought, etc. ke liye use hota hai.

Example:

italic element

<em> bhi italic dikhata hai, but emphasis ke saath.

Example:

emphasized element


HTML <small> Element

<small> ke help se text ka size thoda chhota ho jata hai.

Example:

small element


HTML <mark> Element

<mark> text ko highlight karta hai (usually yellow background).

Example:

mark Element


HTML <del> Element

<del> use karke text pe strike-through line aa jati hai.

Example:

del element


HTML <ins> Element

<ins> inserted text ko underline karta hai.

Example:

ins element


HTML <sub> and <sup> Elements

<sub> – Text normal line se thoda neeche chala jata hai.

<sup> – Text normal line se thoda upar chala jata hai.

Example:

<sub> and <sup> Elements

Aur bhi bohot sare formatting in HTML hote hai. Aap khud se bhi text editor ke madat se try kar sakte ho.

 

Leave a Comment