<label> in paragraph tag

I recently tried switching my DOCTYPE to XHTML 1.0 Strict. It had 
been Transitional.

To comply with accessibility standards I use <label> elements for 
<input> elements in all <form>s. Now, those <label> elements will not 
validate. The Markup Validator says <label> is not allowed in that 
position. If  I nest the form's contents inside a <p></p> tag, then 
place the <form<</form> around the <p></p>, the page validates.

I can't find anything in the DTD or XHTML standard that explains 
this. I think it's a bug, but thought a general query may save you 
folks time in the event a <p> is explainable...




-- 
David R. Stong
Multimedia Specialist 3

Education Technology Services, a small unit within
Information Technology Services, at
The Pennsylvania State University
212  Rider Building II
State College, PA   16801-4819

Received on Thursday, 20 January 2005 04:41:25 UTC