Leave a comment

HTML | Tags | Presentation Tags

html presentation

These are just three of the ten options available to indicate how text can appear in XHTML. The full list is bold, italic, monospaced, underlined, strikethrough, teletype, larger, smaller, superscripted, and subscripted text.

<b>:

Anything that appears in a <b> element is displayed in bold.

<!DOCTYPE HTML—

<p>This is <b>Bold Text</b></p>

</html>

<i>:

The content of an <i> element is displayed in italicized text.

<!DOCTYPE HTML—

<p>This is <i>Italic Text</i></p>

</html>

<u>:

The content of a <u> element is underlined with a simple line.

<!DOCTYPE HTML—

<p> This is <u>Underlined Text</u></p>

</html>

<strike>:

The content of an <s> or <strike> element is displayed with a strikethrough, which is a thin line through the text (<s> is just the abbreviated form of <strike>.

<!DOCTYPE HTML—

<p> This is a  <strike>Strike Text </strike> or</p>

<p> This is also a <s>Strike Text</s><p>

</html>

<tt>:

The content of a <tt> element is written in mono-spaced font (like that of a teletype machine).

<!DOCTYPE HTML—

<tt>This is tt Text<tt>

</html>

<sup>:

The content of a <sup> element is written in superscript; it is displayed half a char the other characters and is also often slightly smaller than the text surrounding it.

<!DOCTYPE HTML—

<p> Today is 1 <sup>st </sup> January </p>

</html>

<sub>:

The content of a <sub> element is written in subscript; it is displayed half a character ‘ s height beneath the other characters and is also often slightly smaller than the text surrounding it.

<!DOCTYPE HTML—

<p> We got a solution of H<sub>2</sub>O </p>

</html>

<big>:

The contents of this element one font size larger than the rest of the text surrounding it.

<!DOCTYPE HTML—

<p> This is the <big>Big Text</big> </p>

</html>

<small>:

This contents are displayed one font size smaller than the rest of the text surrounding it.

<!DOCTYPE HTML—

<p> This is the <small> Small Text </small> </p>

</html>

<hr />:

The < hr / > element creates a horizontal rule across the page.

<!DOCTYPE HTML—

<hr />
<P> Above & Below display the horizontal Line</P>
<hr />

</html>

Official Website : http://www.genwhizztech.com

 

Leave a comment