You can use span elements instead. block-level elements are not allowed in span either.
The <span> tag is much like the <div> element, but <div> is a block-level element and <span> is an inline element.
I'm 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" .... />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With