单选按钮周围的边框

Border around radio button

here is the link to the border

谁能帮我复制那里使用的边框?我为单选按钮编写了代码,它们可以工作,但我就是不知道如何做那个边框,边框如何在单词前后停止?

如有任何帮助,我们将不胜感激!

您可以用 <fieldset></fieldset> 标签包裹单选按钮,用 <legend></legend> 标签包裹文本。

例子

<form>
 <fieldset>
  <legend>Personalia:</legend>
  Name: <input type="text"><br>
  Email: <input type="text"><br>
  Date of birth: <input type="text">
 </fieldset>
</form>