In this lesson you will learn how to make the text strong, bold, italic, deleted, inserted, and marked. Through this lesson you will learn all HTML text formatting tags.
HTML Formatting Elements
In the previous chapter, you learned about the HTML style attribute. HTML also defines special elements for defining text with a special meaning. HTML uses elements like
<i> for formatting output, like bold or italic text. Formatting elements were designed to display special types of text:
Text Formatting Elements:
<b>– Bold text
<strong>– Important text
<i>– Italic text
<em>– Emphasized text
<mark>– Marked text
<small>– Small text
<del>– Deleted text
<ins>– Inserted text
<sub>– Subscript text
<sup>– Superscript text
HTML <b> and <strong> Elements
<b> element defines bold text, without any extra importance.
<b>This text is bold</b>
Note: Don’t confuse between paragraph tag <p> and bold tag <b>.
Also <strong> tag gives the same result of <b>.
<strong>This text is strong</strong>
HTML <i> and <em> Elements
<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>
HTML <small> Element
<small> element defines smaller text.
<h2>HTML <small>Small</small> Formatting</h2>
HTML <mark> Element
<mark> element defines marked or highlighted text.
<h2>HTML <mark>Marked</mark> Formatting</h2>
HTML <del> Element
<del> element defines
deleted (removed) text.
<p>My favorite color is <del>blue</del> red.</p>
HTML <ins> Element
<ins> element defines (added) text.
<p>My favorite <ins>color</ins> is red.</p>
HTML <sub> Element
<sub> element defines sub scripted text.
<p>This is <sub>sub scripted</sub> text.</p>
HTML <sup> Element
<sup> element defines super scripted text.
<p>This is <sup>super scripted</sup> text.</p>
This post is one of the HTML5 for deep understanding course. where we will learn every common elements from basic to the advanced element.
In addition each lesson has a video which you could visit and watch for more practicing and for deep understanding.
We hope that we could give the best for you and for the deep and easy understanding.
You could follow the series from our website SAFHATECH.com and go to categories and then programming and then Choose the course you want then just click next post to go step by step.
Finally we hope every thing is works as you suspect.
Consequently You could follow us at :
Website URL: https://www.safhatech.com/