Use Fluid Image...
- For images with an unknown or undefined aspect ratio.
Don't use Fluid Image...
- If you know the aspect ratio of the image. Use Responsive Image instead so that the space is reserved while the page loads.
Alt Text
All Fluid Images need an alt
attribute of some kind. Refer to Alt Text guidelines.
Multiple source images
Use the srcset
prop to set the corresponding srcset
attribute on the underlying <img>
tag, so that you can provide both hi-res and lo-res versions of an image. The browser will only download the relevant version for the user’s screen size, resulting in better page performance. Refer to srcset at MDN.