Semantic XHTML and the Label Element
Everywhere I look, it seems, I see references to using the label element within x/html and its importance with respect to forms for accessibility and usability. All good stuff, but why just within forms?
I can think of a number of scenarios for which the label element is a good fit semantically. Not surprisingly, since I'm writing this, I'm working on one such scenario now. I'm literally applying a label to output provided in a variety of formats. I see nothing in the XHTML specification that would prohibit me from using the label element outside of a form context, but nor do I see any discussion of this as a reasonable use, much less as a valid or desirable use.
Is there anything I don't know that would make the use of the label element outside of the context of a form invalid or unacceptable within the scope of existing standards, best practices or semantics?





Loading....