title: What's the difference between the HTML width / height attribute and the CSS width / height property on the img element?
body: <p>The HTML <code>&lt;img&gt;</code> element can have the <strong>width</strong> / <strong>height</strong> attribute, and it can also have the CSS <strong>width</strong> / <strong>height</strong> properties:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;img src="xxx.img" width="16" height="16"
  style="width: 16px; height: 16px"&gt;&lt;/img&gt;
  </code></pre>
  
  <p>What's the difference between the HTML attribute and CSS property and should they have the same effect?</p>