Verwendung von <br>
bearbeitet von
@@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](https://x.com/LeaVerou/status/1823736898482782319):
*🔥 Hot take: The self-closing syntax makes HTML easier to learn.*{:@en}
*It means novices can tell the difference between valid and invalid markup \*before\* they memorize HTML’s entire vocabulary of element names.*{:@en}
*Given that HTML is the most novice-friendly language in the web platform, I think that’s a benefit worth preserving.*{:@en}
*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).*{:@en}
*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).*{:@en}
— Lea Verou
Kwakoni Yiquan
{:@art-x-kwejian}
--
*Ad astra per aspera*{:@la}