2 out of 3 rated this helpful - Rate this topic

basefont element | baseFont object

[This documentation is preliminary and is subject to change.]

Sets a base font value to be used as the default font when rendering text.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

Standards information

HTML information

Closing Tagforbidden
CSS Display

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     baseFont

Remarks

The baseFont element has been deprecated in favor of Cascading Style Sheets (CSS) rules that define specific font characteristics for content, including font, fontSize, and so on.

When the baseFont element is placed inside the BODY element, its effects depend on the presence of a closing tag. If a closing tag is specified, only the content inside the baseFont element is affected. If a closing tag is not specified, the baseFont element affects the content that follows the baseFont element in the document.

Examples

This example uses the BASEFONT element to set the base font size, and the FONT element to temporarily override it.


No BASEFONT size specified yet.
<BASEFONT SIZE=4> Set the BASEFONT size.
<FONT SIZE=2> Temporarily override the BASEFONT size.</FONT>
Resume the BASEFONT size.

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ