A radio button and a checkbox are both graphical user interface elements that allow users to make selections, but they function in different ways.
A radio button is used to present a list of mutually exclusive options to the user, where only one option can be selected at a time. When a user selects one radio button, any previously selected radio button in the group becomes deselected. They are typically represented by a small circle that can be selected by clicking on it, and when selected a small dot or marker appears inside the circle.
On the other hand, a checkbox is used to present a list of options where multiple selections can be made. They are typically represented by a square box that can be selected or deselected by clicking on it, and when selected a small tick mark appears inside the box.
In summary, the main difference between a radio button and a checkbox is that radio buttons are used for mutually exclusive options, where only one option can be selected at a time, whereas checkboxes are used for multiple selections.