- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Una lista desplegable</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Cuestionario</h1>
<form action="https://echo.htmlacademy.ru/courses" method="post">
<p>Las listas desplegables se usan a menudo para elegir una fecha.</p>
<p><i>Tu año de nacimiento</i></p>
<!-- agrega la lista aquí -->
<input type="submit" value="Enviar">
</form>
</body>
</html>
CSS
input[type="submit"] {
display: block;
margin-top: 10px;
}
Ha ido a otra página
ObjetivosRealizado
0
- Agrega al formulario una lista desplegable con el nombre
year. - Agrega a la lista una opción con el valor
2000y el textoAño 2000. - Agrega otra opción con el valor
2001y el textoAño 2001.
Prueba enviar el formulario.