All the inline element doesn't respect width value, they will take only required amount of width. Why this is not the case with img tag? After setting the display to inline image is respecting width value specified in html. https://www.w3schools.com/code/tryit.asp?filename=FYECKCZDC3GO
HTML
<!DOCTYPE html>
<html>
<body>
<img src="smiley.gif" style="display:inline;" alt="Smiley face" width="420" height="42">
</body>
</html>
My question is if you have span tag which is inline by default, now you if you add width to it, It will not have any rendering diff because span is inline. Why the same is not true for images?