- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Un campo para subir archivos</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Perfil</h1>
<form action="https://codigoheroe.com/echo" method="post">
<p>Elige una imagen para tu avatar:</p>
<!-- Agrega el campo aquí -->
<input type="submit" value="Subir">
</form>
</body>
</html>
CSS
input[type="submit"] {
display: block;
margin-top: 10px;
}
Ha ido a otra página
ObjetivosRealizado
0
- Agrega al formulario el atributo
enctypecon el valor necesario para subir archivos. - Agrega un campo para subir archivos con el nombre
avatar.