Proyecto de certificación : Crea un formulario

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:

  1. Debes tener un elemento label con un id de name-label.
  2. Debes #name-label contener un texto que describa la entrada.
  3. Tu #name-labeldebes ser descendiente de #survey-form.

Adjunto imagen de mi código html

Preformatted text

type 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>
1 Like

¡Ey!
Espero que tu cabeza no haya explotado. :sweat_smile: Bueno, encontré el error.
Aquí, debe cerrar este valor y completar las comillas.

1 Like

OMG!!
Muchísimas gracias :slight_smile:
De verdad me has ayudado muchísimo, tengo que prestas más atención a esos pequeños detalles.

:smile: :smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.