Fuente de Google de CSS
- Página anterior Tamaño de fuente de CSS
- Página siguiente Atributo de fuente abreviado de CSS
Google Fonts
Si no desea usar ninguna fuente estándar en HTML, puede agregar cientos de otras fuentes utilizando el API de Google Fonts.
Sólo hay que agregar un enlace al archivo de estilo y referenciar la fuente de caracteres que haya elegido:
Ejemplo
!DOCTYPE html <html> <head> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Sofia"> <style> body { font-family: "Sofia"; font-size: 22px; } </style> </head> <body> <h1>Sofia Font</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> </body> </html>
- Página anterior Tamaño de fuente de CSS
- Página siguiente Atributo de fuente abreviado de CSS