Open this example in the interactive library
Source code
<style>
.demo {
width: 6rem;
height: 6rem;
object-fit: cover;
}
</style>
<img
class="demo"
width="200"
height="100"
alt="Illustrated hills beneath a yellow sun"
src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20100%22%3E%3Cpath%20fill%3D%22%2393c5fd%22%20d%3D%22M0%200h200v100H0z%22%2F%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2235%22%20r%3D%2218%22%20fill%3D%22%23fbbf24%22%2F%3E%3Cpath%20d%3D%22m0%20100%2055-55%2048%2047%2037-65%2060%2073%22%20fill%3D%22%230f766e%22%2F%3E%3C%2Fsvg%3E"
/>