Pattern: Missing width
/height
for <img>
Issue: -
For performance reasons, always provide width and height attributes for <img>
elements, it will help to prevent layout shifts.
Example of incorrect code:
<img src="/static/images/portrait-01.webp">
Example of correct code:
<img width="200" height="600" src="/static/images/portrait-01.webp">