Using the <legend> tag for input
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/
精彩评论