

#
#
#
サンプルコード
<p>
あなたは猫が好きですか?:<label><input type="checkbox" name="cat" value="Yes" required form="sample-form">好き</label>
</p>
...
<form method="post" action="sample-inputtag7.php" target="_blank" id="sample-form">
<fieldset>
<legend>好きな果物</legend>
<p>
<label><input type="radio" name="fruit" value="甘蕉">甘蕉</label>
<label><input type="radio" name="fruit" value="林檎">林檎</label>
<label><input type="radio" name="fruit" value="甜瓜">甜瓜</label>
<label><input type="radio" name="fruit" value="苺">苺</label>
<label><input type="radio" name="fruit" value="桃">桃</label>
</p>
</fieldset>
<fieldset>
<legend>好きな野菜</legend>
<p>
<label><input type="radio" name="vege" value="南瓜">南瓜</label>
<label><input type="radio" name="vege" value="甘藍">甘藍</label>
<label><input type="radio" name="vege" value="甘藷">甘藷</label>
<label><input type="radio" name="vege" value="西瓜">西瓜</label>
<label><input type="radio" name="vege" value="茄子">茄子</label>
</p>
</fieldset>
<p><button type="submit">送信する</button></p>
</form>
あなたは猫が好きですか?:
...