Survey Form - Build a Survey Form

**Tell us what’s happening:
I have tried to make this code to add from the #dropdown should have at least two selectable (not disabled) option elements. but it still says it is wrong so can someone help

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang='eg'>
  <h1 id='title'>What anime is the Best?</h1>
  <p id='description'>There are plenty of anime's... Which ones do you think is best!</p>
  <form id='survey-form' type='text'> Name:
    <input id='name' type='text' placeholder='Name'required> <label id='name-label'>
<input id='email' type='email' required  placeholder='Email'> <label id='email-label'>
<input id='number' type='number' min=0 max=120 required placeholder='Age'> <label id='number-label'>Age
  <select id='dropdown'>
  <input type='radio'>
  <input type='radio'>

/* 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:

Make sure you’re adding closing tags where they are required, such as at label or select elements.

Also, it looks like you have input elements after #dropdown, not option elements. Hope this helps!

1 Like

But it also asks for two input elements with a ‘type’ of ‘radio’ (radio buttons) in it as well as the option elements, so would i have make more/ different option elements

First of all, make all necessary corrections in your html code:

  • Bad value eg for attribute lang on element <html>
  • There is no closing <html> tag
  • Where is the ‘head’ and the ‘body’ elements?
  • Element head is missing a required instance of child element title
  • Unclosed element <label id='number-label'>Age
  • The ‘select’ element doesn’t have the closing tag
1 Like

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