Forum Moderators: open

Message Too Old, No Replies

Form structuring tags

How do browsers implement them?

         

johnnie

2:35 am on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello all,

Lately I've been fiddling with form structure tags such as <fieldset>, <label> and <legend>. They really add a nice semantic (and aesthetic) touch to your forms and source code, but I am only able to test their rendering/implementation in firefox 1.5 and IE6.

So, my question is: how do other browsers implement these fine tags? Should I back off or continue using them?

RonPK

11:23 am on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Opera implements them just fine. You've probably noticed that in IE <label> is only clickable if you refer to the embedded input element's ID, ie <label for="inputID">.

In Safari a click on the label will not result in selecting the embedded input element, whether you're using for=ID or not.

I really love properly used <label> elements, as they make clicking radio inputs and checkboxes so much easier.

johnnie

10:42 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I noticed the 'for=' quiking in IE. It is mainly the accessiblity enhancement (especially when the 'accesskey' property is added) that has led me to using these tags.

Makes me wonder, why are they so rarely used?

DrDoc

10:49 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A surprisingly large number of HTML-ers actually don't know about these tags, just like they are equally unaware of elements like thead, tfoot [webmasterworld.com], and the difference between <b> and <strong> (or <i> and <em>).