In the previous class, we have seen about text formatting in detail and now we are here to see basic font style tags.
- Bold
- Italic
- Strike
- Strong
Bold:
Bold tags are used to display any texts darker than normal. Which can be used to display headings or highlight any key points in a paragraph.
Syntax:
<b>..............</b>
Italic:
Italic tag is used to display normal text in italic format. For this, <i> tag is used.
Syntax:
<i>..............</i>
Strike:
Strike tag is used to display strike out text in normal text. For this, <strike> tag is used.
Syntax:
<strike>..............</strike>
Strong:
Same as bold tag but little bit different. For this, <strong> tag is used.
Syntax:
<strong>..............</strong>
Example Program:
Output:
Syntax:
<b>..............</b>
Italic:
Italic tag is used to display normal text in italic format. For this, <i> tag is used.
Syntax:
<i>..............</i>
Strike:
Strike tag is used to display strike out text in normal text. For this, <strike> tag is used.
Syntax:
<strike>..............</strike>
Strong:
Same as bold tag but little bit different. For this, <strong> tag is used.
Syntax:
<strong>..............</strong>
Example Program:
Bold Text
Italic Text
Strike out text
Strong Text
Italic Text
Strong Text
No comments:
Post a Comment