input type="number"
Number inputs can be useful, but they aren't as straight forward as they might seem at first.
Number inputs can be useful, but they aren't as straight forward as they might seem at first.
Style inputs based on if the value is within specific range limits
A quick look at the search element, a semantic element for search and filtering
The :has() relational selector allows you to select parents of elements, but also preceding elements, siblings, and much more!
Two new CSS features, @starting-style and allow-discrete, making it quite easy to transition to and from display: none!
:focus-visible is an improved version of :focus, meaning we don't have to fight those focus rings
Responsive units that respond to local sizes, rather than the entire viewport
Text wraps, but only as a last resort!
A new and improved version of :valid that only kicks in once the user has interacted with the field
An underused HTML element for when we want to show keyboard commands and user inputs.
We can use CSS to find elements that don't have any content in them.
Every week, I post a very quick introduction to an underused HTML feature or a new-ish-but-well-supported CSS feature (or something that can be considered a progressive enhancement).
If you want to make sure you never miss an update, you can sign up below to get them delivered straight to your inbox, or you can subscribe to the RSS feed.