A decade ago HTML and CSS added the ability to, at least signal, validation of form fields. The
required attribute helped inform users which fields were required, while
pattern allowed developers to provide a regular expression to match against an
<input>‘s value. Targeting required fields and validation values with just CSS and HTML was very useful.
Did you know that CSS provides
:optional to allow you to style form elements that aren’t required?
input:optional, select:optional, textarea:optional border: 1px solid #eee; [required] border: 1px solid red;
In a sense, it feels like
:optional is limited to just form fields.
Tips for Starting with Bitcoin and Cryptocurrencies
One of the most rewarding experiences of my life, both financially and logically, has been buying and managing cryptocurrencies like Bitcoin, Litecoin, Ethereum. Like learning any other new tech, I made rookie mistakes along the way, but learned some best practices along the way. Check out …
An Interview with Eric Meyer
Your early CSS books were instrumental in pushing my love for front end technologies. What was it about CSS that you fell in love with and drove you to write about it? At first blush, it was the simplicity of it as compared to the table-and-spacer …
Display Images as Grayscale with CSS Filters
CSS filters aren’t yet widely supported but they are indeed impressive and a modern need for web imagery. CSS filters allow you to modify the display of images in a variety of ways, one of those ways being displaying images as grayscale. Doing so requires the …