#css #html

The aspect-ratio property can be used to manage the width and height of an element.

Or to create responsive containers that always maintain the configured aspect ratio.

1.video {
2  width: 100%;
3  aspect-ratio: 16/9;
4}

Tip found here.