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
Leave a Reply