I know that <label>
elements must not include native block elements as <div>
and so on. Inline Elements are allowed as <span>
, so is the following okay too?
<label>
<span style="display: block"></span>
</label>
The W3C Validator don't show up any info or error about this.
EDIT - i made some examples and they're working fine in chrome, firefox und opera. IE seems to have issues with the flexbox attributes at all and i'm not able to test on safari because of lack of apples in my house. But the block displayed <span>
element seems to work fine without any issues.