<html>
<head>
<style>
img {
width: 200px;
height: 300px;
object-fit: cover;
}
</style>
</head>
<body>
<h2>Using object-fit: cover</h2>
<img src="paris.jpg" alt="Paris" width="400" height="300">
</body>
<!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss3_object-fit by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 16:49:15 GMT -->
</html>