HTML Formatting:
- HTML defines special elements, for defining text with a special meaning.
- HTML uses elements like <b> and <i> for formatting output, like bold or italic text.
<html>
<body>
<p>This text is normal.</p>
<p><b>This text is bold.</b></p>
<p><i>This text is italic.</i></p>
<p><em>This text is emphasized.</em></p>
<h2>HTML <small>Small</small> Formatting</h2>
<h2>HTML <mark>Marked</mark> Formatting</h2>
<p>My favorite color is <del>blue</del> red.</p>
<p>My favorite <ins>color</ins> is red.</p>
<p>This is <sub>subscripted</sub> text.</p>
<p>This is <sup>superscripted</sup> text.</p>
</body>
</html>
SubScript and SuperScript:
<html>
<body>
<p>H<sub>2</sub>SO<sub>4</sub></p>
<p>X<sup>2</sup>+Y<sup>2</sup>=Z<sup>2</sup></p>
</body>
</html>
HTML Abbreviations: The HTML <abbr> element defines an abbreviation or an acronym.
<html>
<body>
<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
</body>
</html>
HTML <address> :
- The HTML <address> element defines contact information (author/owner) of a document or article.
- The <address> element is usually displayed in italic. Most browsers will add a line break before and after the element
<html>
<body>
<address>
Written by Srinivas.G<br>
Visit us at:<br>
www.tutipy.com<br>
Hyderabad<br>
India
</address>
</body>
</html>
HTML <cite>: The HTML <cite> element defines the title of a work.
<html>
<body>
<p>The HTML cite element defines the title of a work.</p>
<p>Browsers usually display cite elements in italic.</p>
<img src="panda.jpg" width="300" height="500" alt="panda">
<p><cite>Panda</cite> image displaying here</p>
</body>
</html>