Professional Documents
Culture Documents
Week #8: HTML Formatting
Week #8: HTML Formatting
HTML Formatting
HTML also uses tags for formatting text, much like you would with a word processing
program. Text formatting means simply things like bold, italic, and underline.
Example:
<u>underline.</u>
Formatting it differently
Example:
"This is <EM>emphasized text</EM> and this is <I>italicized text</I>" - in your text editor and
see how it looks like on the browser.
1. Bold Text - Anything that appears within <b>...</b> element, is displayed in bold.
2. Italic Text - Anything that appears within <i>...</i> element is displayed in italicized.
3. Underlined Text - Anything that appears within <u>...</u> element, is displayed with
underline.
4. Strike Text - Anything that appears within <strike>...</strike> element is displayed with
strikethrough, which is a thin line through the text.
5. Monospaced Text - The content of a <tt>...</tt> element is written in monospaced font.
Most of the fonts are known as variable-width fonts because different letters are of
different widths (for example, the letter 'm' is wider than the letter 'i'). In a monospaced
font, however, each letter has the same width.
6. Superscript Text - The content of a <sup>...</sup> element is written in superscript; the
font size used is the same size as the characters surrounding it but is displayed half a
character's height above the other characters.
7. Subscript Text - The content of a <sub>...</sub> element is written in subscript; the font
size used is the same as the characters surrounding it, but is displayed half a character's
height beneath the other characters.
8. Inserted Text - Anything that appears within <ins>...</ins> element is displayed as
inserted text.
9. Deleted Text - Anything that appears within <del>...</del> element, is displayed as
deleted text.
10. Larger Text - The content of the <big>...</big> element is displayed one font size larger
than the rest of the text surrounding it.
11. Small Text - The content of the <small>...</small> element is displayed one font size
smaller than the rest of the text surrounding it.
REFERENCES: