Hola a toda la comunidad,
Necesito vuestra ayuda, o de lo contrario mi cabeza va a explotar.
Durante todo el día estoy intentando dar solución a uno de las pruebas del proyecto de certificación “crear un formulario de encuesta”.
Los errores son los siguientes:
- Debes tener un elemento label con un id de name-label.
- Debes #name-label contener un texto que describa la entrada.
- Tu #name-labeldebes ser descendiente de #survey-form.
Adjunto imagen de mi código html
Preformatted texttype or paste code here
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Formulario feeckback</title>
<link href="styles.css" rel="stylesheet"/>
</head>
<body>
<h1 id="title"> Feedback form</h1>
<p id="description">Your opinion matters to us, help us improve.</p>
<form id="survey-form" method="post action='https://register-demo.freecodecamp.org'>
<fieldset>
<label for="name" id="name-label">Name <input id="name" name="name" type="text" required placeholder="Indicate your name"></label>
<label for="email" id="email-label">Email <input id="email" name="email" type="email" required placeholder="We promise not to send you advertising"></label>
<label for="number" id="number-label">Age (optional) <input id="number" name="age" type="number" min="16" max="100" placeholder="minimum age 16"></label>
</fieldset>
<fieldset>
<label>Which option best describes your current role?
<select id="dropdown">
<option>Select current role</option>
<option>Student</option>
<option>Full time job</option>
<option>Full time learner</option>
<option>Prefer not to say</option>
<option>Other</option>
<label>Would you recommend learning web development to a friend?
<label><input type="radio" name="recommend-friend" value="siempre"/> Definitely</label>
<label><input type="radio" name="recommend-friend" value="quizas"/> Maybe</label>
<label><input type="radio" name="recommend-friend" value="nunca"/> Not sure</label>
</fieldset>
<fieldset>
<label>What programming language is your favorite?
<input type="checkbox" name="favorite-languaje" value="javascript"/>JavaScript
<input type="checkbox" name="favorite-languaje" value="phyton"/>Python
<input type="checkbox" name="favorite-languaje" value="java"/>Java
<input type="checkbox" name="favorite-languaje" value="php"/>PHP
<input type="checkbox" name="favorite-languaje" value="others"/>Others
<label>Comment briefly, why is it your favorite language?
<textarea name="comment" rows="3" cols="30"></textarea></label>
</fieldset>
<fieldset>
<input id="submit" type="submit" value="Submit"/>
</fieldset>
</form>
</body>
</html>