<p>
<span>cancel</span><span>confirm</span>
</p>
<hr>
<p>
<span>cancel</span>
<span>confirm</span>
</p>
Both should display the same result. However, in the second template, there is a 'space' between 'cancel' and 'confirm' after rendering.
Since tags are inline elements, line breaks will not be applied.
I can use CSS to float them both, but I'm unsure of the reason behind this behavior. My assumption is that block-level tags will introduce space.
Reference Image