Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

In HTML we can use elements for formatting the text to display special types of texts on the browser.

HTML uses elements linke <b> to display text in BOLD letters, <i> to display text in ITALIC.

<b>  it defines bold text, without any extra importance.

<b>This text is bold</b>

<strong> defines strong text, with added semantic “strong” importance.

<strong>This text is strong</strong>

<i> element defines italic text, without any extra importance.

<i>This text is italic</i>

<em> element defines emphasized text, with added semantic importance.

<em>This text is emphasized</em>

<small> element defines smaller text

<h2>HTML <small>Small</small> Formatting</h2>

<mark> element defines marked/highlighted text

<h2>HTML <mark>Marked</mark> Formatting</h2>

<del> element defines deleted/removed text

<p>My favorite color is <del>blue</del> red.</p>

<ins> element defines inserted/added text.

<p>My favorite <ins>color</ins> is red.</p>

<sub> element defines subscripted text.

<p>This is <sub>subscripted</sub> text.</p>

<sup> element defines superscripted text.

<p>This is <sup>superscripted</sup> text.</p>

 

One thought on “HTML FORMATTING

Comments are closed.