Legacy & Obsolete Elements

<basefont>

Obsolete or historical HTML; do not use in new documents. Specified default font face, color or size for subsequent text in older browsers. Use CSS on a containing element; inheritance applies to font properties. The syntax shows old markup for recognition only. The runnable example demonstrates a modern migration pattern, not the obsolete behavior.

Formal Syntax & Structure

html syntaxhtml
<basefont size="4">

Working Example

Example Snippethtml
<style>body { font-size: 1.125rem; }</style><p>Readable text</p>
HTML Reference