HTML basefont face Attribute

## HTML Reference

HTML by Alphabet HTML by Function HTML Global Attributes HTML Events HTML Canvas HTML Audio/Video HTML Doctypes HTML Colornames HTML Colorpicker HTML Colormixer HTML Character Sets HTML ASCII HTML ISO-8859-1 HTML Symbols HTML URL Encode HTML Lang Codes HTTP Messages HTTP Methods Keyboard Shortcuts

## HTML Tags

<!--> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <command> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <head> <header> <h1> - <h6> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <keygen> <label> <legend> <li> <link> <map> <mark> <menu> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <table> <tbody> <td> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

# HTML <basefont> face Attribute

HTML <basefont> tag

## Example

Specify the default font for text on page:

<head>
<basefont face="courier, serif" />
</head>
<body>
<h1>This is a header</h1>
<p>This is a paragraph</p>
</body>
Try it yourself »

## Browser Support

The face attribute is only supported in Internet Explorer 9, and earlier versions.

## Definition and Usage

The <basefont> tag is not supported in HTML5. Use CSS instead.

The face attribute of <basefont> is deprecated in HTML 4.01.

The face attribute specifies the default font for the text in a document.

Tip: The value of the face attribute can hold several font names as a "fallback" system. List the font that you want first, followed by any fonts that can fill in for the first, if it is unavailable. You should end the list with a generic font (serif, sans-serif, monospace, cursive or fantasy), to let the browser pick a font that is in the generic family, if no other fonts are available.

## Compatibility Notes

The face attribute of <basefont> is deprecated in HTML 4.01. Use CSS instead.

CSS syntax (in the <head> section): <style>body{font-family: courier, serif}</style>

CSS Example: Specify a default font for a page

In our CSS tutorial you can find more details about the font-family property.

## Syntax

<basefont face="font_family" />

## Attribute Values

Value | Description
--- | ---
font_family | The font of the text. To specify a prioritized list of several fonts, separate the names with a comma (like this <basefont face="verdana,arial,sans-serif" />

HTML <basefont> tag

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE