basefont tag (XHTML 1.0)
base font sizePlease be aware that this tag is deprecated within the XHTML 1.0 specification! Look below for more details on an alternative.
The basefont tag allows you to set basic font properties, like size, name and color.
The tag has been deprecated for a long time, together with the font tag, and really shouldn't be used anymore. Instead, use the CSS properties font-family, font-size and color.
Attributes
| Attribute | Deprecated | Required | Description |
|---|---|---|---|
| class | space-separated list of classes | ||
| color | X | text color | |
| dir | direction for weak/neutral text | ||
| face | X | comma-separated list of font names | |
| id | document-wide unique id | ||
| lang | language code | ||
| size | X | X | base font size for FONT elements |
| style | associated style info | ||
| title | advisory title |
Events
| Event | Description |
|---|---|
| onclick | a pointer button was clicked |
| ondblclick | a pointer button was double clicked |
| onkeydown | a key was pressed down |
| onkeypress | a key was pressed and released |
| onkeyup | a key was released |
| onmousedown | a pointer button was pressed down |
| onmousemove | a pointer was moved within |
| onmouseout | a pointer was moved away |
| onmouseover | a pointer was moved onto |
| onmouseup | a pointer button was released |
© htmlpedia.net 2008 - 2012