-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
33 lines (30 loc) · 1.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="html-logo.ico" type="image/icon" />
<link rel="stylesheet" href="styles.css" />
<title>HTML 30-days Challenge</title>
<meta name="description" content="HTML 30-days Challenge, 30 retos de HTML para principiantes, por Manz.dev" />
</head>
<body>
<main>
<h1>Bienvenid@ a <span style="color: #e44d26">HTML 30-day Challenge</span></h1>
<p>por <a href="https://lenguajehtml.com/challenge/" target="_blank">Manz.dev</a></p>
<p>Selecciona un reto para visualizarlo:</p>
<ul class="challenge-list"></ul>
</main>
<script>
const challengeList = document.querySelector(".challenge-list");
for (let i = 1; i <= 30; i++) {
const li = document.createElement("li");
const a = document.createElement("a");
a.href = `Challenge_${i}/`;
a.textContent = `Reto ${i}`;
li.appendChild(a);
challengeList.appendChild(li);
}
</script>
</body>
</html>