![]() |
|
<basefont>deprecated
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||
This tag and related attributes are deprecated in favour of Cascading Style Sheets.
The basefont is used to establish a default font size. Once the default font size is established, the <font> tag then sets the font size relative to the basefont size. The <BASEFONT size="n> tag sets a maximum font size of 7 and a minimum of 1 with 7 being the largest font that can be created. No combination of basefont and font settings will exceed 7 or be less than 1. The browsers will not accept it.
The basefont tag must always be put at the beginning of the body of the page. If this is not done, strange things will happen.
Example: Follow this link for a demonstration of <basefont>.
class=
|
||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| color= deprecated
|
Sets the font colour. | |||||||||||||||||||||||||||||||
"#rrggbb"
|
this is six hexadecimal numbers that stipulates a specific colour from a palette of 32768 colours. The colours are specified in rr= red, gg= green, bb= blue. According to Microsoft, the "#" sign is optional
Colours with 140 named Netscape colours and 16 named Internet Explorer colours. |
|||||||||||||||||||||||||||||||
"colorname"
|
in addition to the #rrggbb combination above, specific colours can be specified by name. Supported colours are:
Colours with 140 named Netscape colours and 16 named Internet Explorer colours. |
|||||||||||||||||||||||||||||||
| face= deprecated
|
Sets the font colour. | |||||||||||||||||||||||||||||||
id=
|
||||||||||||||||||||||||||||||||
lang=
|
list of language codes list of country codes |
|||||||||||||||||||||||||||||||
name=
|
"Defines the name of the base font." WebTV 1.2 DTD.
WebTV credits this attribute to Netscape Navigator 2.0. However, the information available from Netscape is insufficient to confirm this. It is included because WebTV published it. |
|||||||||||||||||||||||||||||||
| size= deprecated
|
The <basefont> tag can only take values from 1 to 7 with 7 being the largest. All relative <font size=""> tags work from this stipulation. | |||||||||||||||||||||||||||||||
style=
|
||||||||||||||||||||||||||||||||