Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Connect with a community of experts ready to provide precise solutions to your questions on our user-friendly Q&A platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.




Page Title





Submit



Add a pair of radio buttons to your form, each nested in its own label element.
One should have the option of car and the other should have the option of bike.
Both should share the name attribute of “vehicle” to create a radio group
Make sure the radio buttons are nested with the form
Make sure that the name attributes appear after the type

Sagot :

Answer:

The code is as follows:

<form name = "myForm">

       <div>

           <input type="radio" name="vehicle" value="D0" id="D0"/>

           <label for="D0">Car</label>

       </div>

       <div>

           <input type="radio" name="vehicle" value="D1" id="D1"/>

           <label for="D1">Bike</label>

       </div>

   </form>

Explanation:

This defines the first button

           <input type="radio" name="vehicle" value="D0" id="D0"/>

           <label for="D0">Car</label>

This defines the second button

           <input type="radio" name="vehicle" value="D1" id="D1"/>

           <label for="D1">Bike</label>

The code is self-explanatory, as it follows all the required details in the question