Gunnar Bittersmann: Verwendung von <br>

Beitrag lesen

@@Gunnar Bittersmann

Die Schreibweise <x/> für Standalone-Elemente bietet gegenüber <x> den Mehrwert, dass sie die Suche nach einem End-Tag erspart, wenn man den Elementtypen nicht kennt.

Lief über’n Ticker:

🔥 Hot take: The self-closing syntax makes HTML easier to learn.

It means novices can tell the difference between valid and invalid markup *before* they memorize HTML’s entire vocabulary of element names.

Given that HTML is the most novice-friendly language in the web platform, I think that’s a benefit worth preserving.

But even to experts, the cognitive process of reading a tag name and remembering whether it’s self-closing is much slower (though both tasks are very fast in absolute terms).

Generally, *reading* even one word is much slower than identifying familiar symbols which can be recognized in one go, as images (the "familiar" part is important; unfamiliar symbols introduce way more friction than reading — I’m looking at you WebKit devtools).

— Lea Verou

Kwakoni Yiquan

PS: Tab Atkins widerspricht im Thread.

--
Ad astra per aspera