HTML Text Formatting

HTML provides a range of tags that can be used to format text on a web page.
Following is the list of HTML formatting text.
  • <b> - Text is Bold
  • <strong> - Text is Important
  • <mark> - Text is Marked
  • <i> - Text is Italic
  • <em> - Text is Emphasized
  • <big> - Text is bigger
  • <small> -Text is Smaller
  • <del> - Text is Deleted
  • <u> - Text is underlined
  • <ins> - Text is Inserted
  • <sub> - Text is Subscript
  • <sup> - Text is Superscript

HTML <b> Element

Used to make text bold.
You can use a style font-weight to make it bold.

Example

<p>Text becomes <b>bold</b></p>
<p>Text becomes <span style="font-weight:bold">bold</span></p>

HTML <strong> Element

Used to indicate that the text is important.
A strong tag is the same as a bold tag.

Example

<p>Text becomes <strong>important and bold</strong></p>

HTML <mark> Element

Used to make text highlighted.

Example

<p>Text becomes <mark>marked</mark></p>

HTML <i> Element

Used to make the text italic.

Example

<p>Text becomes <i>italic</i></p>

HTML <em> Element

Used to make text emphasized and italic.

Example

<p>Text becomes <em>emphasized</em></p>

HTML <big> Element

Used to make text bigger than normal.

Example

<p>Text becomes <big>big</big></p>

HTML <small> Element

Used to make text smaller than normal.

Example

<p>Text becomes <small>small</small></p>

HTML <del> Element

Used to indicate that a section of text has been deleted or removed from a document.

Example

<p>Text becomes <del>deleted</del></p>

HTML <ins> Element

Used to indicate a section of text has been inserted or added to a html page.

Example

<p>The text in this section is <ins>inserted</ins></p>

HTML <u> Element

Used to underline a text.

Example

<p>The text is <u>undelined</u></p>

HTML <sub> Element

Used to make the text appear below the normal text in a smaller size.

Example

<p> O<sub>2</sub> - Oxygen </p>

HTML <sup> Element

Used to make the text appear above the normal text in a smaller.

Example

<p>The Isotope of Hydrogen H<sup>1</sup></p>

Quick Recap

Topics Covered

<b>, <stong> and <mark> tags
<i> and <em> tags
<big> and <small> tags
<del>, <ins> and <u> tags
<sup> and <sub> tags

Practice With Examples in Compilers

The Concepts and codes you leart practice in Compilers till you are confident of doing on your own. A Various methods of examples, concepts, codes availble in our websites. Don't know where to start Down some code examples are given for this page topic use the code and compile or Try on own Now

Example 1

Example 1 Example 2 Example 3 Example 4 Example 5


Quiz


FEEDBACK

Rating


Message