N. Web fonts

Salida

Ábrelo en otra pestaña.

Revísalo en gilpgedit.

1<!DOCTYPE html>
2<html lang="es">
3
4<head>
5
6 <meta charset="UTF-8">
7 <title>Web fonts</title>
8 <meta name="viewport"
9 content="width=device-width">
10
11 <!-- Estos 3 links los genera
12 https://https://fonts.google.com/
13 después de seleccionar varias familias y hacer que el
14 asistente te indique como descargarlas a tu sitio.
15 -->
16 <link rel="preconnect" href="https://fonts.googleapis.com">
17 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
18 <link
19 href="https://fonts.googleapis.com/css2?family=Forum&family=Winky+Rough:ital,wght@0,300..900;1,300..900&display=swap"
20 rel="stylesheet">
21
22 <style>
23 h1 {
24 /* Carga el font "Winky Rough" descargado- */
25 font-family: "Winky Rough", sans-serif;
26 }
27
28 p {
29 /* Carga el font "Forum" descargado- */
30 font-family: "Forum", serif;
31 }
32 </style>
33
34</head>
35
36<body>
37
38 <h1>Web fonts</h1>
39
40 <p>
41 Este ejemplo usa Web fonts.
42 </p>
43
44</body>
45
46</html>

Solo para los más rudos

skip_previous skip_next