What's the difference between the HTML width / height attribute and the CSS width / height property on the img element?

The HTML element can have the width / height attribute, and it can also have the CSS width / height properties:

<img src="xxx.img" width="16" height="16"
style="width: 16px; height: 16px"></img>

What's the difference between the HTML attribute and CSS property and should they have the same effect?

25
задан Meraj al Maksud 9 October 2019 в 06:25
поделиться