CSSCSS28 min read

CSS Fonts

Learn how fonts work in CSS: font-family, size, weight, and how to choose readable fonts for real websites.

David Miller
January 1, 2026
3.2k89

Fonts affect readability and professional look.

Font family

body {
  font-family: Arial, sans-serif;
}

Font size

p {
  font-size: 16px;
}

Font weight

h1 {
  font-weight: bold;
}

Real world rule

  • body text → simple fonts
  • headings → strong fonts

UI imagination

Bad font = user leaves
Good font = user reads more

Remember

  • Keep fonts simple
  • Use consistent sizes
#CSS#Beginner