views:

39

answers:

1

hi Im using xhtml strict. I want to put a SPAN tag inside LABEL tag. Is it correct way ?

<label>Username <span>*</span></label><input type="text" .... />
+1  A: 

label is an inline element therefore can contain other inline elements like span. So this is correct XHTML.

Developer Art
thnx !! will this make any accessibility problem ?
Aneesh