开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜