How to add ‘required’ field to radio buttons

Add ‘required’ to any of the radio group elements:

<input type=”radio” name=”acces” value=”all” required>All</input>
<input type=”radio” name=”acces” value=”mobile”>Mobile</input>
<input type=”radio” name=”acces” value=”desktop”>desktop</input>