 |
 |
 |
 |
 |
|
Appearance Control |
|
|
|
Numerous tags and methods are available to format the appearance of the text in a Web document. The tags explained in this section are used to change the appearance of text and
not the overall layout of the page. These are divided into four broad categories: headings, fonts, physical styles and logical styles. |
|
|
<Hn>: Defines a heading level, where n is a number 1 to 6.
This tag is used to increase the emphasis of text. H1 is the biggest and boldest, while H6 is the smallest.
|
|
|
<font>: Defines the font to be used
This tag is used to modify the text font and color and is applicable to selected text. A global version of this tag - <basefont> is also available
.
|
|
|
Styles: Defines the physical apparance of text
Styles are tags used to define the appearance of text (italics, emphasized, etc.). Both physical styles (bold) and logical styles (strong) are available. In
general logical styles are preferred to physical styles because, by using logical styles (strong instead of bold) you permit the browser/user to define how such text will be displayed. Logical styles are more
flexible than physical styles
|
|
|
Examples:
|
|