Text Code

HTML Font Code

Set a font family and size using inline CSS — no external font file needed for these web-safe choices.

Live Tool
font.css Live

          
Preview

1How To Use

Follow these steps — no coding experience needed.

  1. Pick a web-safe fontThese render identically without loading any external font file.
  2. Set a size18-20px is a common comfortable body-text size.
  3. Copy the CSSApply it to a class, an ID, or inline.

2Example Output

What this code looks like once it's on a real page.

A serif font like Georgia often suits long-form reading content.

3Browser Compatibility

BrowserSupportNotes
Chrome✓ SupportedFull support
Firefox✓ SupportedFull support
Safari✓ SupportedFull support
Edge✓ SupportedFull support
Opera✓ SupportedFull support
Mobile browsers✓ SupportedFull support, iOS & Android

Supported in every current browser — Chrome, Firefox, Safari, Edge and Opera all render this identically, on both desktop and mobile.

Related Pages

More tools that pair naturally with this one.