XHTML strict span inside label is semantic
I'm using XHTML strict. I want to put a SPAN tag inside LABEL tag. Is it correct 开发者_如何学Pythonway?
<label>Username <span>*</span></label><input type="text" .... />
label is an inline element therefore can contain other inline elements like span. So this is correct XHTML.
加载中,请稍侯......
精彩评论