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.

How to get the active element in DevTools

Most modern browsers have a console shorthand you can use to get the element that’s currently active in the inspector. Once you’ve highlighted an element, you can refer to it by typing $0 in the console.

The difference between nodeName and tagName

If you check an HTML element’s nodeName and tagName properties, you’ll get the same result. So… What’s the difference?

You don't have to use CSS Grid alone

One of the most common misconceptions about CSS Grid is that it’s all or nothing: that you have to use it for your entire layout, or not at all. This is absurd and completely untrue.