I'm trying to align this SVG icon with this text.but I don't understand why they are not aligned even both elements are inline.
Please note I,m not asking how to align them. I just want to understand why these two elements treated differently even I set them display:inline-block;
<div>
<div style="display: inline-block;">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" style="display: block;">
<path d="M0 0h24v24H0z" fill="none" />
<path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z" />
</svg>
</div>
<span style="display: inline-block;"> Some Text</span>
</div>