<html>
<head>
<style>
img {
width:200px;
height:400px;
object-fit:cover;
}
</style>
</head>
<body>
<h2>The object-fit Property</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, 05 Jun 2019 13:17:43 GMT -->
</html>