<?xml version="1.0" encoding="utf-8"?>

Specify the image's width & height

Specify the image's width & height Bad Practice
Specify the image's width & height Best Practice

If you want to downsize or change your picture's dimensions, using height and width attributes is not the way to do it. In this case, the browser will still load the original picture and either display its smaller version, or stretch and distort it. Instead, rescale and cut images in an image editor before uploading them.

Improve your UX & Product skills with interactive courses that actually work