© Joe Attardi 2020
J. AttardiModern CSShttps://doi.org/10.1007/978-1-4842-6294-8_6

6. Text Styling

Joe Attardi1 
(1)
Billerica, MA, USA
 

Now that we’ve covered the basics of styling, let’s explore the styling of text.

Fonts

You can use any font installed on your system for styling your website, but you should use a web-safe font. These are fonts that are generally considered safe to use because they are available on most users' systems.

Table 6-1 shows the generally accepted web-safe fonts along with their generic font family names.
Table 6-1

Web-safe fonts

Font

Family

Arial

Trebuchet MS

Verdana

sans-serif

Courier New

monospace

Georgia

Times New Roman

serif

Basic text styling

There are several CSS properties that control basic text styling. We’ll discuss a few of them ...

Get Modern CSS: Master the Key Concepts of CSS for Modern Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.