The HTML anchor(with the inline-block mode) and button aligns their contents vertically in different ways, as in the following example.
AAA
<a href='#' style='display:inline-block;width:100px;height:100px;text-align:center;background:green'>
<span style='background:red'>BBB</span>
</a>
CCC
<br><br>
AAA
<button style='width:100px;height:100px;background:green'>
<span style='background:red'>BBB</span>
</button>
CCC
I compared computed CSS properties of the anchor and button in the developer mode of Chrome, but could not find any properties related to the difference.
Is it possible to make an anchor to behave like a button by applying CSS properties, while keeping the inline-block mode? (I know it's possible by using the inline-flex mode.)
And if it's not possible, does that mean there are some hidden layout rules in the HTML rendering that cannot be controlled by CSS?