![]() |
VOOZH | about |
Toggle Buttons: The buttons that can change from one state to another, i.e. which can be toggled from on state to off state or vice-versa are called toggle buttons. For example:
Radio Button: As the name suggests, it is the concept of the buttons in a radio, where for the first station, we select the first button, for the second station we select the second button and so on. It is like a multiple-choice question where at a time only one button will be active. Here we select from a list of options. For example:
Example: Create a radio button using Bootstrap.
Important points:
Example 2: The following code will help us to understand the difference (in code) to design a toggle and a radio button.
Output:
👁 button