HTML/CSS Tips for <img> π€³
— jhey β²π»π (@jh3yy) July 3, 2022
β Use "onerror" to catch and set a fallback "src" β¨
β Set a "subtle" background-color so users know something is coming π
β Use CSS aspect-ratio to avoid layout shifts πΌοΈ
- Remember your "alt" attribute where necessary π pic.twitter.com/590hogS9KQ