Write Alt Text Like You’re Talking To A Friend – Cloud Four
This is good advice:
Write alternative text as if you’re describing the image to a friend.
The hits just keep on coming from the Filament Group. Here Scott shares a really clever technique for creating an image magnifier using the sizes
attribute of the img
element.
This is good advice:
Write alternative text as if you’re describing the image to a friend.
Progressive Enhancement allows us to use the latest and greatest features HTML, CSS and JavaScript offer us, by providing a basic, but robust foundation for all.
Some great practical examples of progressive enhancement on one website:
type="module"
to enhance a form with JavaScript,picture
element to provide webp
images in HTML.All of those enhancements work great in modern browsers, but the underlying functionality is still available to a browser like Opera Mini on a feature phone.
Here’s a clever tiny lesson from Dave and Brad: you can use prefers-reduced-motion
in the media
attribute of the source
element inside picture
.
Some tips for getting responsive images to work well on the Apple Watch:
- test your layouts down to 136-
px
wide- include
300w
-ish resources in your full-widthimg’
ssrcset
s- art direct to keep image subjects legible
- say the magic
meta
words
Jeremy Wagner offers a deep dive into lazy loading images (and video) with some advice for considering the no-JavaScript situation too.
It’s not just about finding the issues—it’s about finding the issues at the right time.
Naming custom elements, naming attributes, the single responsibility principle, and communicating across components.
Mobile Safari doesn’t support the min and max attributes on date inputs.
An alternate route to a declarative version of the Web Share API.
Don’t replace. Augment.