Sans-Serif

Chris Coyier //

Have you ever written this?

body {
  font-family: Helvetica, Arial, Sans-Serif;
}

You're all like: "Helvetica is the most awesome so I want that first, then Arial for PC's since hey it's pretty close, then fall back to whatever McSansSerif for crazyputers with like zero normal fonts installed."

Turns out this is way better:

body {
  font-family: Sans-Serif;
}

Macs will get awesome Helvetica by default. On PC's, even if they have Helvetica it can look worse than Arial for whatever reason, so this way they get Arial by default. And you're still covered by the generic keyword. Shorter, easier, yay.

Thanks to @mathias for pointing out the specific part (29:32) of this video of Paul Irish talking HTML5 Boilerplate.

If you want to expand out that Helvetica stack and use some nicer variations when available, do see this.