frontend

Back to Basics: The Power of Clean HTML

Thoughts from the intersection of code, craft, people, and progress.

The forgotten foundation of accessibility and SEO.

Clean HTML is rarely the part of a project that gets shown in a demo, but it quietly supports almost everything that matters. Structure, accessibility and maintainability all improve when the document makes sense before the CSS and JavaScript arrive.

HTML carries meaning before the visual layer arrives. That meaning helps browsers, assistive technology, search engines and the developer trying to understand the page after the original CSS has moved on.

This matters because small choices repeat. What feels harmless once can quietly become the normal way of working.

Prefer the thing that survives contact

Front-end work has a habit of looking simple from a distance. The browser then introduces real content, small screens, old devices, keyboard navigation and somebody using the product in a way nobody drew in the design file.

That is why I favour choices that are easy to inspect. Start with semantic HTML, let CSS do the layout work it was designed for, and add JavaScript where it creates genuine value. Cleverness is occasionally useful; legibility is useful every day.

The best front-end code does not show off. It makes the interface feel obvious.

The web is wonderfully forgiving, but users should not have to rely on that forgiveness. Build from sturdy foundations and the interesting parts become much easier to enjoy.

That is not a dramatic conclusion, but useful work is often built from undramatic conclusions applied consistently.