- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Selectores de atributos</title>
<link rel="stylesheet" href="course-5.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<form class="login" action="https://echo.htmlacademy.ru/courses" method="post">
<label for="academy-login">Nombre de usuario</label>
<input type="text" id="academy-login" name="academy-login" required>
<label for="academy-password">Contraseña</label>
<input type="password" id="academy-password" name="password">
<input type="submit" value="Entrar">
</form>
</body>
</html>
CSS
Ha ido a otra página
ObjetivosRealizado
0
- Asigna
background-color: #fcf8e3;al campo que tiene el atributorequired. - Asigna
background-color: #f2dede;al campo de contraseña. - Asigna
border-color: green;al botón.