Wednesday, October 17, 2012

HTML Formatting Tag


Chapter 5

HTML Formatting Tags

HTML uses tags like <b> , <i> and <u> for formatting output, like bold ,italic,and underline text.
These HTML tags are called formatting tags.

Example :5

<html>
<body>

<p><b>This is bold</b></p>
<p><strong>This is strong</strong></p>
<p><i>This is italic</i></p>
<p><u>This is underline</u></p>
<p><em>This is emphasized</em></p>
<p><code>This is computer output code format</code></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>

</body>
</html>



Output is:



This is bold
This is strong
This is italic
This is underline
This is emphasized
This is computer output code format
This is subscript and superscript

No comments:

Post a Comment