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

Differentiate between http get and post.
View

Write short note on radio buttons and check boxes?


View
Explain the role of display and visibility properties in CSS with examples.
View
Explain Positioning elements in CSS
View
Types of list in HTML (Unordered List , Ordered List , Nested Lists, Definition Lists)
View
Form in HTML
View
What is Responsive Design? Explain the components that make responsive web design. Why its important ? explain in detail.
View