![]() |
|
HTML input fields, Radio, Select and Checkbox, Free online HTML Tutorial, Learn HTML online for free... |
| Lessons | Radio, Select and Checkbox |
|
||||||
|
The radio option is used when we need to offer the user one of the given options. The code required to add radio option to an HTML form is as under: This is a radio option<input type="radio" name="rd"> The output will be:
Select Field: The select field is like a drop-down menu. It can be added to a web page as under: This
is a select field The output will be:
Check Box: A check box can be added to a web page as under: This is a checkbox<input type="checkbox" name="chb"> The output will be:
We use checkboxes when we require the user to choose any number of items from the given list of items.
Next >>> Lesson No. 33: HTML Buttons
|