Survey Form - Build a Survey Form

Tell us what’s happening:

Hello everyone, I’m lost on how to continue with the exercise, could you help me
. Your #name should require input.
. Your #email should require input.
. You should have an input element with an id of number .
. Your #number should have a type of number .
please I need help

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>formulario de encuesta FreeCodeCamp</title>
    <link rel="stylesheet" href="styles.css" />
    <h1 id="title">formulario de encuesta FreeCodeCamp</h1>
    <p id="description">Gracias por tomarse el tiempo para ayudarnos a mejorar la plataforma.
      <form id="survey-form">
       <label for="Nombre" id="name-label">Nombre <input id="name" type="text" /></label>
        <label for="email" id="email-label">Correo electrónico<input id="email" type="email" />
      <label id="number" id="number-label">Años (opcional)<input id="number" type="number" min="18" max="99" />
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

these two mean that the fields must be required
do you remember how to make an input field required?

also your html has some mistakes. Like missing closing tags for the label element.
You need to write correct code.

If you need help finding your own mistakes you can use an html validator
(just google ‘online html validator’ and put your code into one to see all the errors it finds)

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