Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用严格的 XHTML。我想在SPAN标签内放一个LABEL标签。是正确的方式吗?
SPAN
LABEL
<label>Username <span>*</span></label><input type="text" .... />
label是一个内联元素,因此可以包含其他内联元素,例如span. 所以这是正确的 XHTML。
label
span