/
doesn't make sense, at least not in HTML5. So you have:
<p> <span id="s1"><h3>Eggs</h3>One dozen please</span>
Since a <p>
cannot contain <h3>
, the browser tries to make at least some sense out of it, interpreting it as:
<p> <span id="s1"></span> </p> <h3>Eggs</h3>One dozen please
source share