Specifying font families and styles in a stylesheet URL So the browser can fall back to its default fonts if need be. In particular,Īdd a CSS generic font name like serif or sans-serif to the end of the list, Note: When specifying a web font in a CSS style, always list at least oneįallback web-safe font in order to avoid unexpected behaviors. Or with an inline style on the element itself: Style an element with the requested web font, either in a stylesheet: You can start using the Google Fonts API in just two steps:Īdd a stylesheet link to request the desired web font(s): And that's only the beginning of what you can do with the Fonts API and CSS.