All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Why semantic HTML beats rebuilding the browser with divs

By

Karl Koch

5d ago· 6 min readenOpinion

Summary

A critique of modern web development practices that rebuild native browser functionality poorly using divs and CSS classes instead of leveraging semantic HTML elements like buttons. The article argues that semantic HTML is essential infrastructure that provides behavior, accessibility, keyboard support, and platform adaptation for free, and that treating the visual layer as the source of truth leads to fragile, hard-to-maintain interfaces.

Source

SidebarWhy semantic HTML beats rebuilding the browser with divskarlkoch.me

Key quotes

· 4 pulled
The easiest way to make an interface harder to maintain is to rebuild the browser badly.
A div can look like a button... Or it can be a button.
The visual layer is treated as the source of truth, then the behaviour is patched back on afterwards.
Semantic HTML is interface infrastructure: native elements carry behaviour, accessibility, form semantics, keyboard support, and platform adaptation before styling begins.
Snippet from the RSS feed
Semantic HTML is interface infrastructure: native elements carry behaviour, accessibility, form semantics, keyboard support, and platform adaptation before styling begins.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.