Browser support:
Specifies a default font value for the document.
This element cannot have a closing tag.
JavaScript page for this element: baseFont .
Possible members:
class
Sets the style class or classes that belong to the element.
color
Sets the color of the text or line.
dir
Sets the text direction as related to the lang attribute.
DISABLED
Sets the state of an object for user interaction.
face
Specifies the font face for a page or for a font element.
id
Sets a unique identifier for the object.
lang
Specifies the language of the element.
size
Specifies the size of the font.
style
Sets an inline style associated with an element.
behavior
Sets the URL of a behavior file.
color
Specifies the color of the element's text content.
font
Specifies up to six separate font properties, in a shorthand form.
font-family
Specifies the font face for text.
font-size
Specifies the font size of the text.
font-style
Specifies whether the style of the font is normal, italic or oblique.
font-variant
Specifies a variation of the specified or default font-family .
font-weight
Specifies the font weight of the text.
letter-spacing
Specifies the amount of space between letters.
line-height
Specifies the distance between lines of text in a block-level element.
text-autospace
Specifies the spacing rules between Western and Asian-based (such as Japanese and Chinese) characters.
text-decoration
Specifies the appearance characteristics of text, whether it is underlined, overlined, lined-through or blinking text.
text-overflow
Specifies how to handle the overflowed area of text.
text-transform
Specifies the case of the text.
text-underline-position
Specifies the position of the underline decoration.
white-space
Specifies how spaces, tabs, and newline characters inside the element are handled.
word-spacing
Specifies the spacing between words.
word-wrap
Specifies whether the current line should break if the content exceeds the boundaries of its container.
writing-mode
Specifies the intrinsic writing direction of the element's content.
Example HTML code 1:
This example illustrates the use of the baseFont element:
< basefont size = "7" /> Set the BASEFONT size.
< font size = "4" > Font size=4. </ font >
Resume the BASEFONT size.
< basefont size = "3" />
All text size = 3 in the future
Did you find this example helpful?
yes
no
Example HTML code 2:
Recommendation:
< head >
< style >
body {
font-size : 13px ;
color : #120811 ;
font-weight : bold ;
}
</ style >
</ head >
< body >
Some text content
</ body >
Did you find this example helpful?
yes
no
Related pages:
External links:
Share:
Digg
Del.icio.us
Reddit
Facebook
Twitter
Diigo
User Contributed Comments