フォームの基本構造03



☆★データーでの確認★☆

ラジオボタン


ソースコード

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>ラジオボタン</title>
</head>
<body>

<h1>ラジオボタン</h1>
<form action="#" method="post">

<p>性別:
  <input type="radio" name="sex" value="male" checked>男性
  <input type="radio" name="sex" value="female">女性
</p>

<p><input type="submit" value="送信"></p>

</form>

</body>
</html>


ブラウザで表示