<form id="youtube-form" method="post" action="">
<label for="searchField" id="label-youtube-id">YouTube ID:</label>
<input type="text" id="searchField" name="videoid" class="search-field" />
<fieldset id="outputFieldset">
<legend>Output format:</legend>
<label for="flv">FLV</label>
<input type="radio" id="flv" name="format" class="radio-button" value="flv" />
<label for="avi">AVI</label>
<input type="radio" id="avi" name="format" class="radio-button" value="avi" />
<label for="mp3">MP3</label>
<input type="radio" id="mp3" name="format" class="radio-button" value="mp3" />
</fieldset>
<input id="youtube-submit" type="submit" name="submit" value="Submit" />
</form>
此代码有什么问题?我在验证时似乎发生错误。 (其中三个)验证fieldset。字段集位于表单的外部并且有外部输入
第21行,第49列:文档类型 这里不允许使用元素“标签”; 缺少“ins”,“del”,“h1”, “h2”,“h3”,“h4”,“h5”,“h6”,“p”, “div”,“address” “fieldset”开始标记
是因为我需要添加更多字段集,还是其他的我做错了吗?
任何帮助,非常感谢:)
谢谢:)现在我明白了这个问题。但是,为什么你在因特网上看到很多指南完全忽略了字段集? – MindTooth 2009-10-02 12:09:31
允许输入和标签作为HTML过渡版本中表单的子元素。我们现在已经过了过渡期。 – Quentin 2009-10-02 12:59:06