Write short note on radio buttons and check boxes?


RADIO BUTTONS -

 Radio buttons are useful when you want the user to select a single item from a small list of choices and you want all the choices to be visible.

 Radio buttons are added via the element.

 The buttons are made mutually exclusive (i.e., only one can be chosen) by sharing the same name attribute.

 The checked attribute is used to indicate the default choice, while the value attribute works in the same manner as with theelement.

CHECKBOXES  Checkboxes are used for getting yes/no or on/off responses from the user.

 Checkboxes are added via the element.

 We can also group checkboxes together by having them share the same name attribute.

 Each checked checkbox will have its value sent to the server.

 Like with radio buttons, the checked attribute can be used to set the default value of a checkbox



Share to whatsapp

More Questions from Web Technology and its Applications Module 2

Compare/Difference between radio button and checkbox controls of HTML 5 with Examples.
View
Differentiate between http get and post.
View
Form in HTML
View
Types of list in HTML (Unordered List , Ordered List , Nested Lists, Definition Lists)
View
What does floating an element do in CSS ? How do you float an element?
View
Approaches to CSS Layout .
Explain fixed Layout and Liquid Layout with example each. List liquid and Fixed layout Advantages and limitations.
View
Explain the role of display and visibility properties in CSS with examples.
View