Snippets of things I re-use but always forget exactly how to write it
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<script src="js/main.js" async defer></script>
</body>
</html>
<video controls poster="poster.jpg">
<source type="video/webm" src="video.webm">
<img src="poster.jpg" alt="">
</video>
<video autoplay loop muted playsinline poster="poster.jpg">
<source type="video/webm" src="video.webm">
<img src="original.gif" alt="">
</video>
Serve different formats of the same image
<picture>
<source type="image/webp" srcset="image.webp">
<img src="image.jpg" alt="">
</picture>