•  
     

font-family - HTML & CSS

index.html

Código: Selecionar todos

<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>font-family - HTML & CSS</title>
</head>
<body>
<h1>I'm going to be a serif font when I grow up!</h1>
<h2>I'm going to be a sans-serif font.</h2>
<h3>I'm going to be in cursive!</h3>
</body>
</html>


stylesheet.css

Código: Selecionar todos

h1{font-family:Times, serif;}
h2{font-family:Verdana, sans-serif;}
h3{font-family:Vivaldi, cursive;}


Demo: http://jsfiddle.net/H8GYN/