Re: Bug in HTML::Form <label> supportam 03.12.2004 10:54:57 von gisle Dan Kubb writes: > > One > Is in common use? What browsers support it? Regards, Gisle
Re: Bug in HTML::Form <label> supportam 03.12.2004 12:28:27 von dan.kubb Hi Gisle, > Is in common use? What browsers support it? The tag is fairly widely supported by the major browsers, especially in Mozilla and IE 4+ I believe. It was introduced in HTML 4, and continues on into XHTML 1 and 2. I wouldn't say it's in common use outside of developers, but it is helpful when you want to assign text to an input field -- that was the purpose the W3C intended for the tag. Here's a couple of good article about why you would use the tag: http://webpages.charter.net/mmmbeer/code/forms/labels/ http://www.webaim.org/techniques/forms/ In summary it allows you to: - Makes forms more accessible. Screen readers that read web page content aloud can know *for certain* which text to read when describing the form fields. - Makes forms more usable. The clickable area is increased to include the label text as well as the radio/checkboxes. This is good for visually impaired users. - Provides a semantic container for linking CSS styles to (among other things). Rather than using span/div/td/etc tags to wrap the label text for styling, this tag was actually designed for the purpose. I can't remember the last time I made a form without using the tag, its just habit now. I usually combine , and tags along with CSS to make fairly clean forms without any presentational cruft -- its much easier to maintain and extend. -- Dan ___________________________________________________________ Dan Kubb Email: dan.kubb@onautopilot.com AutoPilot Marketing Phone: +1 (604) 820-0212 33699 Grewall Cres. Cell: +1 (604) 825-9212 Mission, B.C., Canada Web: http://www.onautopilot.com V2V 7B7 ___________________________________________________________