HTML Formatting - W3points | w3schools | TutorialPoint | | w3school

On your website, if you place more and more elements then you have to make necessary minor changes to the formatting of the elements. There are ways to add some flavor with attributes and align elements within other elements as we have discussed in HTML Attributes. Text elements are further amplified by several tags. The Text is made bold, italic, sub/superscripted, and more by formatting tags.

Formatting tags in HTML




<p>An example of <b>Bold Text</b></p>

<p>An example of <em>Emphasized Text</em></p>

<p>An example of <strong>Strong Text</strong></p>

<p>An example of <i>Italic Text</i></p>

<p>An example of <sup>superscripted Text</sup></p>

<p>An example of <sub>subscripted Text</sub></p>

<p>An example of <del>struckthrough Text</del></p>

<p>An example of <code>Computer Code Text</code></p>




An example of Bold Text

An example of Emphasized Text

An example of Strong Text

An example of Italic Text

An example of superscripted Text

An example of subscripted Text

An example of struckthrough Text

An example of Computer Code Text

HTML Formatting

To paragraph elements, a pinch of flavor has been added by all of these tags. With any type text element, they can be used.

HTML - Formatting Tag Usage

Formatting tags should be used sparingly to bold or italicize one or two words in your elements. Cascading Style Sheets are used if you wish to bold an entire paragraph. You can easily learn CSS in our tutorial. The web developer’s decision is final about doing all the formatting by the use of these tags.