Text Formatting tags in HTML
To format text in HTML we can use the following special tags:
- <b> - bold text
- <strong> - Important text
- <sup> - Superscript text
- <sub> - Subscript text
- <mark> - Marked/highlighted text
- <i> - italic text
- <em> - Emphasized text
- <ins> - Inserted text
- <del> - Deleted text
- <u> - Underline text
- <small> - Smaller text
Example:
<pre>
We have to take
<b>bold</b>
decisions for the <small>smaller part</small> of the
<i> developing nations </i> and
<mark>highlight </mark> key points in order to prevent mass production of CO<sub>2</sub>, By incrementing the funds from
<del>2%</del> to 5%. To help them to rely on
<strong> environment friendly </strong> technologies. And there is also a need to <u>Underline</u> those environment friendly technologies.
</pre>
<p>2<sup>2</sup> equals to ? Yes, It equals to 4</p>
Output: Observe each tag and their result
We have to take bold decisions for the smaller part of the developing nations and highlight key points in order to prevent mass production of
CO2, By incrementing the funds from2%to 5%. To help them to rely on environment friendly technologies. And there is also a need to
Underline those environment friendly technologies.
22 equals to ? Yes, It equals to 4
Continue Learning: Form Elements
Comments
Post a Comment