<?xml version="1.0" encoding="utf-8"?>

Radio buttons

Radio buttons

Use the <input type="radio"> to add radio buttons. They are great when you need users to select exactly one option from a pre-defined list, for example, the type of delivery or payment option. Radio buttons usually come in groups of related options, each button rendered as a small circle. The circles are filled or highlighted when selected.

Pro Tip: To make a checkbox selected by default, add the checked attribute directly inside the <input> tag you want to preselect.

Improve your UX & Product skills with interactive courses that actually work