HTML Formatting is a process of formatting text for better look and feel. HTML provides us ability to format text without using CSS. There are many formatting tags in HTML. These tags are used to make text bold, italicized, or underlined. There are almost 14 options available that how text appears in HTML and XHTML.

In HTML the formatting tags are divided into two categories:

  • Physical tag: These tags are used to provide the visual appearance to the text.
  • Logical tag: These tags are used to add some logical or semantic value to the text.

    Bold Text

    Anything that appears within <b>...</b> element, is displayed in bold as shown in the program.

    Italic Text

    Anything that appears within <i>...</i> element is displayed in italicized as shown in the program.

    Underlined Text

    Anything that appears within <u>...</u> element, is displayed with underline as shown in the program.

    Strike Text

    Anything that appears within <strike>...</strike> element is displayed with strikethrough, which is a thin line through the text as shown in the program.

    Monospaced Font

    The content of a <tt>...</tt> element is written in monospaced font. Most of the fonts are known as variable-width fonts because different letters are of different widths (for example, the letter 'm' is wider than the letter 'i'). In a monospaced font, however, each letter has the same width.

    Superscript Text

    The content of a <sup>...</sup> element is written in superscript; the font size used is the same size as the characters surrounding it but is displayed half a character's height above the other characters.

    Superscript Text

    The content of a <sup>...</sup> element is written in superscript; the font size used is the same size as the characters surrounding it but is displayed half a character's height above the other characters.

    Inserted Text

    Anything that appears within <ins>...</ins> element is displayed as inserted text.

    Deleted Text

    Anything that appears within <del>...</del> element, is displayed as deleted text.


Example:


Output:

HTML Formatting Example

Bold Text :

The following word uses a bold typeface.

Italic Text :

The following word uses an italicized typeface.

Underlined Text :

The following word uses an underlined typeface.

Strike Text :

The following word uses a strikethrough typeface.

Monospaced Font :

The following word uses a monospaced typeface.

Superscript Text :

The following word uses a superscript typeface.

Subscript Text :

The following word uses a subscript typeface.

Inserted Text :

I want to drink cola water

Deleted Text :

I want to drink cola water

Do you Know?
Progamming is what actually means ?

What is software development ?

How we categorized software development in different manner.

C Programming
C Plus Plus
Python
Java Development
Web Designing
Javascript
Mysql
Oracle
We cover all the programming concepts in various programming languages, this tutorials are very help full for bigener as well as Experience developer, for the ease of understanding we categorized programming in different manner likewise.