The <img> element now supports lazy-loading, async decoding and many other features: https://t.co/QcbvWLQfT7 I wrote about how to optimize UX & the Core Web Vitals with it.
HTML is so powerful 🚀 The HTML "Capture" attribute opens your device camera to capture image if "accept" attribute indicates image input It accepts two values👇 1. user = front camera 2. environment = back camera
Don't forget to link your labels to your checkboxes and radio inputs! https://t.co/KlKx7ZeMO0
One of my fav emmet expansions is quickly generating a bunch of HTML with item numbering.
Small HTML tip that actually can be used in any framework but in little bit different way. (I have tried in VueJs) This element opens an email window with your email address as a receiver. 👇 #CodeNewbie #100DaysOfCode #coding #DEVCommunity #code
Today I discovered "inputmode"! 🥳 Now we can "hint" the browser what virtual keyboard we want to show on mobile devices without forcing the browser to change the visuals of the input. (unlike with input="number" for example)
TIL about another HTML tag 🙃 <abbr>
HTML power to the rescue! 💪 Use lazy loading by just adding the attribute loading="lazy". The distance threshold varies depending on: - Image type - Effective connection type - Whether Lite mode is enabled on Chrome for Android