CSS Aspect-ratioSets a preferred width-to-height ratio.ExampleCopy codeaspect-ratio: 16 / 9;Further referenceMDN CSS referenceLive preview