Skip to content

Commit 04a1fa3

Browse files
committed
Creamos hoja de estilos por separado
1 parent 308ee9d commit 04a1fa3

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

2023-02-14/hola.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,15 @@
77
name="viewport"
88
content="width=device-width, initial-scale=1.0"
99
/>
10-
<style>
11-
.important {
12-
color: red;
13-
font-weight: bold;
14-
}
15-
</style>
10+
<link rel="stylesheet" href="style.css" />
1611
<title>Página de prueba</title>
1712
</head>
1813
<body>
1914
<header>
2015
<h1>Dólor conséctetur dolorë aute mollit</h1>
2116
</header>
2217
<main>
18+
<h1>Esto es el main</h1>
2319
<p>
2420
Deserunt deserunt sit consectetur ipsum ex qui nostrud
2521
eiusmod nisi exercitation. <br />
@@ -66,6 +62,6 @@ <h1>Dólor conséctetur dolorë aute mollit</h1>
6662
Sint labore incididunt sunt cillum est proident minim eu
6763
elit magna fugiat nostrud elit..
6864
</p>
69-
<div style="height: 10rem" />
65+
<div class="space" />
7066
</body>
7167
</html>

2023-02-14/style.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.important { color: red; }
2+
.important { font-weight: bold; }
3+
4+
body { background-color: #ddd; }
5+
p {
6+
font-family: 'Courier New', Courier, monospace;
7+
line-height: 1.4;
8+
}
9+
pre {
10+
font-family: 'Iosevka';
11+
font-size: 14pt;
12+
}
13+
main {
14+
background-color: white;
15+
border: 2px solid black;
16+
padding: 1rem;
17+
}
18+
h1 {
19+
font-size: 33pt;
20+
}
21+
main section h1 {
22+
font-size: 22pt;
23+
color: green;
24+
}

0 commit comments

Comments
 (0)