frontend

Semantic HTML Isn’t Dead

Before building a custom clickable element, I try a button. It's a small habit, but it avoids a surprising amount of code.

There are still styling decisions and accessibility checks to make. The useful thing is starting with an element that already has a purpose and familiar behaviour. I find markup easier to review when I can tell which bits navigate, which bits submit and which bits are just text. A screen full of divs makes that harder than it needs to be.