HTML Formatting
HTML Formatting
COMPUTER ELECTIVE 7
HTML FORMATTING
•HTML contains several
elements for defining text
with a special meaning.
HTML FORMATTING
• Example
• This text is bold
• This text is italic
• This is subscript and superscript
HTML FORMATTING ELEMENTS
Formatting elements were designed to display special types of
text:
<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> ELEMENTS
• Example
<small>This is some smaller text.</small>
HTML <MARK> ELEMENT
• Example
• <p>This is <sup>superscripted</sup> text.</p>
HTML <SUP> ELEMENT
• The HTML <sup> element defines superscript text.
Superscript text appears half a character above the
normal line, and is sometimes rendered in a smaller
font. Superscript text can be used for footnotes, like
WWW[1]:
• Example
• <p>This is <sup>superscripted</sup> text.</p>
EXERCISE NO. 5
1. Add extra importance
to the word
"degradation" in the
paragraph below.
EXERCISE NO. 5
2. Using of correct tags,
Emphasize the word
"metropolitan“.
EXERCISE NO. 5
3. Using of correct tags,
Highlight the word
"FUN“.
EXERCISE NO. 5
4. Using of correct tags,
Apply subscript
formatting to the
number "2“.
EXERCISE NO. 5
5. Using of correct tags,
Add a line through
(strikeout) the letters
"blue“.
EXERCISE NO. 5
6. Using of correct tags,
Mark the words “Thank
You“.