This deprecated, unimplemented, presentational element is not recommended. Authors should generally find an alternative way to accomplish the same task while adhering to all best practices, or simply do without it if it is unimportant.

The void HTML <basefont /> element has been deprecated since HTML4. It was not supported in all major browsers. Browsers never implemented it in the same way; practically, using it has always brought indeterminate results. This element established a default font size for a document. Font size then can be varied relative to the base font size using the <font></font> element.


  • color - This attribute sets the text color using either a valid color name, or a color code.
  • face - This attribute contains a list of one or more font names. The document text in the default style is rendered in the first font face that the client's browser supports. If no font listed is installed on the local system, the browser typically defaults to the proportional or fixed-width font for that system.
  • size - This attribute specifies the font size as either a numeric or relative value. Numeric values range from 1 to 7 with 1 being the smallest and 3 the default.

HTML example:

<basefont color="#CCCCCC" face="Arial Black" size="+5" />


The <basefont> element does not have a visual rendering.

Typical CSS representation

basefont {
  display: none;

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.