fieldset> element with legend
element
<form>
<fieldset>
<legend>Which version of HTML do you use?</legend>
<input type="radio" name="html" id="html4" value="html4">
<label for="html4">HTML4</label>
<br>
<input type="radio" name="html" id="html5" value="html5">
<label for="html5">HTML5</label>
</form>