HTML Formatting

HTML Tutorial

HTML Forms

HTML Graphics

HTML Media

HTML API

Html Formatting

HTML has several elements that defines text with a special meaning.

Example

				
					<!DOCTYPE html>
<html>
<body>
<p><b>This text is bold</b></p>
<p><i>This text is italic</i></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>
</body>
</html>


				
			

Output:

This text is bold

This text is italic

This is subscript and superscript

HTML Formatting Elements

Formatting elements are designed to display special types of text format:

<b> – Bold text

<strong> – Important text

<i> – Italic text

<em> – Emphasized text

<mark> – Marked text

<small> – Smaller text

<del> – Deleted text

<ins> – Inserted text

<sub> – Subscript text

<sup> – Superscript text

HTML <b> and <strong> Element

				
					<!DOCTYPE html>
<html>
<body>
<p>This text is normal.</p>
<p><b>This text is bold.</b></p>
<p><strong>This text is important!</strong></p>
</body>
</html>




				
			

Output:

This text is normal.

This text is bold.

This text is important!