开发者

Using the <legend> tag for input

开发者 https://www.devze.com 2023-01-08 01:09 出处:网络
So I\'ve got a form, who\'s content will change based on a dropdown list of different reports.So开发者_如何转开发 the question is, how horrible would it be to include a select box as the legend tag fo

So I've got a form, who's content will change based on a dropdown list of different reports. So开发者_如何转开发 the question is, how horrible would it be to include a select box as the legend tag for the fieldset?

I know that technically it works, and semantically it makes sense (the actual text of the legend tag, the selected value is a caption of the contents of the fieldset). But I can't help but feel dirty doing it.


If it's semantically correct and the page HMTL validates then I don't see why not.

However, I'm sure there are other UI solutions to your problem. Perhaps using jQuery UI's tabs or something similar. http://jqueryui.com/demos/tabs/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号