On this page
  1. <font>
  2. Summary
  3. Notes & Best Practices
  4. Example

<font>

Prev: `<center>` | Up: text | Next: forms
Rel: CSS font-family, text, Text & Lists Guide
Ref: MDN Web Docs — <font>
Tags: #public #web #html #elements #text #tier/legacy


Summary

Obsolete presentational element for font face, size, and color.

Legacy / Avoid: Prefer CSS font-family in all new markup.

Notes & Best Practices

Example

<!-- Replace <font> with CSS classes -->
<span class="highlight">Styled text</span>

Linked from

Related notes