1
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Mi Primer Documento HTML5</title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
background: #f1f5f9;
padding: 30px;
line-height: 1.6;
}
.tarjeta {
background: #ffffff;
border-radius: 12px;
padding: 24px;
max-width: 520px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
border-left: 5px solid #e34f26;
}
.badge {
background: #fee2e2;
color: #991b1b;
padding: 4px 8px;
border-radius: 6px;
font-size: 0.8rem;
font-weight: 700;
}
.btn {
background: #e34f26;
color: #ffffff;
border: none;
padding: 10px 18px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.btn:hover {
background: #c83d16;
}
</style>
</head>
<body>
<div class="tarjeta">
<span class="badge">LECCIÓN 1</span>
<h1>¡Hola desde HTML5!</h1>
<p>
Estás ejecutando código HTML en vivo en <strong>Kilopolis Academia</strong>. Cada elemento que ves en esta caja está estructurado con etiquetas HTML.
</p>
<p>
Prueba a modificar el título o el texto en el editor de la izquierda y presiona <em>Ejecutar Código</em>.
</p>
<button class="btn" onclick="alert('¡Felicitaciones! Has probado tu primer código HTML5.')">
Probar Interacción »
</button>
</div>
</body>
</html>
Haz clic para editar este código