Image

HTML & CSS - HTML FORMATTING - HTML FORMATTING

HTML FORMATTING

As you begin to place more and more text elements onto your website, you may find yourself wanting to incorporate bold or italic properties in your text elements. HTML offers a handful of special tags that can be utilized to do just that:

HTML also provides special elements for defining text with a special meaning.

1. Bold text The HTML <b> element defines bold text.
2. Important text The HTML <strong> element defines strong text.
3. Italic text The HTML <i> element defines italic text.
4. Emphasized text The HTML <em> element defines emphasized text.
5. Marked text The HTML <mark> element defines marked or highlighted text
6. Small text The HTML <small> element defines small text.
7. Deleted text The HTML <del> element defines deleted (removed) text.
8. Inserted text The HTML <ins> element defines inserted (added) text.
9. Subscripts The HTML <sub> element defines subscripted text.
10. Superscripts The HTML <sup> element defines superscripted text.
EX:

<!DOCTYPE html>
<html>
<body>
<p><b>C language</b></p>
<p><strong>C++ language.</strong></p>
<p><i>javascript .</i></p>
<p><em>core java.</em></p>
<h2>HTML <small>web</small> designing</h2>
<h2>HTML <mark>Marked</mark> Formatting</h2>
<p>My favorite place <del>garden</del> red.</p>
<p>My favorite <ins>color</ins> is red.</p>
<p>h<sub>2</sub>s<sub>o</sub>4</p>
<p>a<sup>(b+c)</sup></p>
</body>
</html>