开发者

Is using fieldset and labels in XHTML discouraged?

I he开发者_StackOverflow中文版ard there was fundamental lack of web-browser comprehension of those, and often IE6,7, opera would flounder trying to display them.

Is that indeed true? Should those be avoided? And while we're at it, do they have a specific advantage when using forms? (except for the impeccably square frame around)


That sounds unreasonable. In fact, XHTML 1.x STRICT requires a block-level element like fieldset to enclose input elements. As for labels, they are valuable for users with screen readers. I would not substitute either tag.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜