<picture>
  <source srcset="https://www.w3cplus.com/sites/default/files/blogs/2021/2112/photo.jxl" type="image/jxl">
  <source srcset="https://www.w3cplus.com/sites/default/files/blogs/2021/2112/photo.avif" type="image/avif">
  <source srcset="https://www.w3cplus.com/sites/default/files/blogs/2021/2112/photo.webp" type="image/webp">
  <source srcset="https://www.w3cplus.com/sites/default/files/blogs/2021/2112/photo.jpg" type="image/jpeg">
  <img src="https://www.w3cplus.com/sites/default/files/blogs/2021/2112/photo.jpg" alt="" />
</picture>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  font-family: "Exo", Arial, sans-serif;
  background-color: #557;

  display: grid;
  place-content: center;
}

img {
  max-height: 100vh;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.