Survey Form - Build a Survey Form

How do I code:

  1. Inside the form element, you are required to enter your name in an input field that has an id of name and a type of text

name

<!-- file: index.html -->
<h1 id="title">Survey</h1>
<p id="description">Personal details</p>
<form id="survey-form">survey-form
<fieldset>
  <label for="name">name <input id="name" type="text" placeholder="simphiwe" /></label>
  <label for="email">email <input id="email" type="email" placeholder="ssitole38@gmail.com" /></label>
  <label for="number">number <input id="number" type="number" min="5" max="13" placeholder="122334"/>
  <select id="dropdown" min:2><option></option><option></option></select>
  <label id="name-label">name</label>
  <label id="email-label">email</labell>
  <label id="number-label">number</label>  
  <input id="radio" type="radio" value="6" name="radio" />
  <input id="radio" type="radio" value="7" name="radio" />
  <input id="checkbox" type="checkbox" value="10" name="checkbox"/>survey-forms
  <input id="checkbox" type="checkbox" value="10" name="checkbox"/>survey-forms
  <textarea>survey-form</texterea>
  <button id="submit" type="submit">survey-form</button>
  </form>
/* 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/112.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

1 Like

could you describe what your having trouble with?

The " NAME" descendent is failing the test. I dont know if I have code it correctly?

You don’t seem to have it set as ‘required’

here’s a link to help you:
HTML required Attribute (w3schools.com)

Add the attribute required. The task says you are “required” so I think that is missing

Is it ok? If so you can click solved

it ticks okay!!! :smiley: :+1: Thanks

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