HTML HTML Forms Choosing Options Create Radio Buttons

Avery Pierce
Avery Pierce
1,869 Points

Any assistance with this question? After the select menu, create a radio button with the ID "small", the value "small

After the select menu, create a radio button with the ID "small", the value "small", and the name "shirt_size". Don't add a label or line breaks yet.

<input="radio" id="small" value="small" name="shirt_size"></input>

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Forms</title>
  </head>
  <body>
    <form action="index.html" method="post">
      <h1>Shirt Order Form</h1>
      <label for="color">Shirt Color:</label>

      <select id="color" name="shirt_color">

        <option value="red">Red</option>
        <option value="yellow">Yellow</option>
        <option value="purple">Purple</option>
        <option value="blue">Blue</option>
        <option value="green">Green</option>
        <option value="orange">Orange</option>
      </select>

       <input="radio" id="small" value="small" name="shirt_size"></input>

      <button type="submit">Place Order</button>
    </form>

  </body>
</html>

1 Answer

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 22,057 Points

You forgot to use the type attribute in the input

Try this:

<input type="radio" id="small" value="small" name="shirt_size">
Avery Pierce
Avery Pierce
1,869 Points

Thank you very much sir!