html font css family code example

Example 1: lato font family css

<link href='http://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'>

Example 2: css font family

/* You can set the font family by using font-family: followed by the font family name
 If you want to use a google font you have to find it on the google font website
then link the script in your HTML and then put the name in font family 

browse fonts:
https://fonts.google.com/
*/

.class {
  font-family: sans-serif
}

Tags:

Css Example