Deprecated in HTML5. Do not use.

<basefont face=""> HTML Attribute

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Attribute of
<basefont> HTML Tag
What does <basefont face=""> HTML Attribute do?
Was used to set the base font face for a document. Deprecated. Use CSS instead.

The right way to set a base font face

Use CSS for all fonts and typographical styling. The font-family CSS property lets you specify one or more fonts. The browser will select the first font which it has available, so it is usually a good idea to put your preferred font first, and then a series of increasingly-common fallback fonts. Setting the font-family property on the body element will cause your font selection to cascade through the entire document, unless overridden by a more specific CSS rule.

body {
 font-family: "Adobe Garamond Premier Pro", Garamond, "Linux Libertine", Georgia, serif;
}

/* Override on navigation menu */
.main-navigation {
  font-family: "Open Sans", Helvetica, "Linux Biolinum", Arial, Sans-serif;
} 
Adam is a technical writer who specializes in developer documentation and tutorials.