Most elements have no preferred aspect ratio. On day 42 I’ve explained how you can use the aspect-ratio
property to define a ratio for these elements. Replaced elements like <iframe>
, <video>
, <embed>
, or <img>
, on the other hand, have an intrinsic aspect ratio. This means that you don’t have to define one using the aspect-ratio
property and they will scale naturally.