Skip to content
doubtly

1 answer

Best answer

Change the font with the CSS font-family property, e.g. <p style="font-family: Arial, sans-serif;">.

<p style="font-family: 'Times New Roman', serif;">Serif text</p>
<p style="font-family: Verdana, sans-serif; font-size: 18px;">Sans-serif text</p>

<style>
  body { font-family: Georgia, serif; }
</style>
  • font-family takes a list of fonts; the browser uses the first one available, so end with a generic family (serif, sans-serif, monospace).
  • Related properties: font-size, font-weight (bold), font-style (italic), color.
  • The old <font face="Arial"> tag is obsolete in HTML5 and should not be used.
Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.