开发者

Is using fieldset and labels in XHTML discouraged?

开发者 https://www.devze.com 2022-12-19 03:52 出处:网络
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.

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

精彩评论

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