Latest Posts

I write about front-end web development. I'm inspired by Nathan Barry's motto, teach everything you know. I also take a lot of inspiration from my friend and mentor, Chris Ferdinandi.

Lean on HTML and CSS (but not always)

HTML and CSS are the most resilient parts of the front end, so you should always lean on them where possible. There are times, though, when you should prefer JavaScript. Here are a few examples.

Understanding client-side JavaScript frameworks

Iā€™m incredibly vocal about my disdain for client-side JavaScript frameworks. This is because I strongly believe in Resilient Web Design and The Lean Web, and Iā€™m passionate about A11Y. Modern JavaScript tooling tends to make these things more difficult. But I must also recognize that frameworks have their place in the right context.

How to check an email address in vanilla JS

In HTML5, you can use built-in form validation to check an email address. This works by setting the type="email" attribute on an input element. You might need to check an email address programatically, though, so here are a few ways you can do that in vanilla JS.