i

Learn HTML and CSS in 10 Days

Multiple Choice Inputs And Menus

In addition to text-based input controls, HTML also provides the functionality to choose data using the drop-down list and multiple choice. Let's see some of them below.

Radio Buttons

Radio buttons are one of the easy methods to make users select a quick choice from a list of a small number of options. It allows the user to select only one option.

To make a radio button the element is provided with a ‘type’ attribute value as radio. It is important that each radio button has the same ‘name’ attribute such that all of them forms a group and correspond to each other.

Friday

Saturday

Sunday

Check Boxes

Check boxes are very much similar to the radio buttons. The main difference is that it allows the user to select multiple options.

Friday

Saturday

Sunday

Drop Down lists

The option of the drop-down list is a good way to offer the users with a long list of options. To set up a drop-down list we are going to take the help of andelements. The element helps in wrapping up all the menu options while the

element helps in marking up all the menu options.

The ‘name’ attribute is present in the element while the ‘value’ attribute is present in theelement. The value attribute corresponds to the name attribute.

Friday

Saturday

Sunday

Multiple Selectors

When the Boolean attribute ‘multiple’ is placed inside the element, it offers the user to select more than each alternative from the rundown in turn. In addition to that, utilizing the ‘selected’ Boolean attribute on more than oneelement inside the menu will preselect various choices. 

Friday

Saturday 

Sunday