Can block elements be placed inside lowercase?
<span><div></div><div></div></span> Is this code correct?
No, it is not valid, it is better to write the opposite
<div><span></span><span></span></div> <div style="display: inline"><div></div></div> right? and <span style="dislplay: block"><div></div></span> ? - SergeyAccording to the WHATWG phrasing content can be inserted inside the span element.
Source: Semantics of span element , phrasing content
If you omit the semantics, you can embed anything inside the span, the main thing is to make sure that it is block, that is, it can be added to it in display: block styles.
display property.Source: https://ru.stackoverflow.com/questions/609079/
All Articles