<!DOCTYPE html>
<html>
<head>
<title>W3.CSS(w3cschool.cn)</title>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<link rel="stylesheet" href="https://7npmedia.w3cschool.cn/w3.css">
</head>
<body>
<form class="w3-container w3-card-4">
<h2>单选按钮</h2>
<p>
<input class="w3-radio" type="radio" name="gender" value="male" checked>
<label>男</label></p>
<p>
<input class="w3-radio" type="radio" name="gender" value="female">
<label>女</label></p>
<p>
<input class="w3-radio" type="radio" name="gender" value="" disabled>
<label>未知 (已禁用)</label></p>
</form>
</body>
</html>