Cheat Sheet about HTML

Here are some handy HTML tricks:

Different image in dark mode

<picture>
  <source
    srcset="dark.png"
    media="(prefers-color-scheme: dark)" />
  <img src="bright.png" alt="" />
</picture>