Google Web Fonts

Hosting your own web fonts and using proper CSS to support all browsers is slightly challenging. There are much easier ways to go about this. I really like Google Fonts; they are very easy to use and 100 percent free. The quality of the fonts is very good as well. In this section, we'll replace our hosted fonts with Google Web Fonts. The first step is to go to Google Fonts and select the two fonts we'll be using. Add a link to the CSS file in the heading of both HTML documents. Then finally, add the font name to our CSS.

Get Mastering CSS 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.