SELFHTML bildung.social/@selfhtml đã retweet

🔥 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).
Justin Fagnani@justinfagnani
I can't believe Prettier still insists on using supposedly "self-closing tag" syntax on HTML void elements, even though HTML doesn't have any such thing as self-closing tags. It's unnecessary and confusing and Prettier should stop it.
English

















