Use CSS background-image property for decorative images. This means the imagegives no information at all; andmakes your website more attractive only; andis just a background image.Use the HTML image element (<img>) for meaningful images. This means the imageneeds alternative text; ormust exist to give users information; oris not a stock image.A bonus tip: optimize the file size of your image. Do not make your users download 10 Megabytes (MB) of an image when it can be reduced to 1 MB—or even ...
No comments yet. Log in to discuss on the Fediverse