HTML Formatting
Text Formatting
This help to structure are text will be display in HTML and XHTML. Severally element are be created to help in the better presentation of text. We will look just a few.
Bold Tags
This element bold text in HTML and it is written as <b> and </b>.
<p> The following word uses an <b>bold</b> typeface. <p>
Italic Text
A <i> </i> is used to italicized text. It is usually use to connote relevant.
<p> The following word has <i>Italic</i> typeface. <p>
Strong Text
Using <strong></strong> element,we can bold text to indicated the importance of the text.
<p> The following word uses a <strong>strong</strong> typeface. <p>
Underlined Text
To Underlined a text in HTML we use the <u> </u> so that all text in between the tags will be underlined.
<p> You can only make sound with our <u>mouth</u> <p>
Superscript And SubScript Text
The <sup>...</sup> element is place character in the power of a its source character e.g Ab. Subscript is written as a base of a character Ab
<p> <The character b is the superscript of A <sup>b</sup> <p>
<p> <The character b is the subscript of A <sub>b</sub> <p>
Strike Text
The <strike>...</strike> element is displayed text with strikethrough.
<p>Our sales price is no longer , <strike>400 </strike> but now 500 <p>
Deleted Text
The <strike>...</strike> element is displayed text as deleted .
<p>Our sales price is 500 <del>400 </del> <p>
Larger and Small Text
The <strike>...</strike> The content of the <big>...</big> element is displayed one font size larger than the rest of the text surrounding it while the content of the <small>...</small> element is displayed one font size smaller than the rest of the text surrounding it .
<p> The man name is <big>John Smith</big> and his cat name <small>Jerry Smith</small><p>
Inserted Text
The <ins>...</ins> element is displayed as inserted text.
<p>The <ins>rare<ins> words from Mr. Okafor Chukwu <p>
Example
The phrase tags stated above are written below.
<p> The following word uses an <em>emphasized</em> typeface. <p>
<p> The following word has been marked with yellow <mark>marked</mark> typeface. <p>
<p> The following word uses a <strong>marked</strong> typeface. <p>
<p> Our Community name is <abbr title = "Datikvah World Community">DWC</abbr><p>
<p> The following word uses a <strong>strong</strong> typeface. <p>
<p> The following word uses an <b>bold</b> typeface. <p>