1
私は以下のようにフィールドセットを持っている:フィールドセット内の凡例タグの位置は重要ですか?
<fieldset>
<legend>Colour</legend>
<label><input type="radio" name="colour" value="blue"> Blue </label>
<label><input type="radio" name="colour" value="red"> Red </label>
</fieldset>
ここで私はすべてのlabel
タグの下にlegend
タグを続けるならば、HTMLは以前とまったく同じfieldset
をレンダリングします。
<fieldset>
<label><input type="radio" name="colour" value="blue"> Blue </label>
<label><input type="radio" name="colour" value="red"> Red </label>
<legend>Colour</legend>
</fieldset>
これも同様です。
ここで質問があるのは、プログラム的に正しいか、凡例タグをfieldset
の任意の場所に書き込むかどうかです。
http://checker.html5.org – BoltClock