Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
layer8
on July 6, 2023
|
parent
|
context
|
favorite
| on:
The case against self-closing tags in HTML
No, people remember which elements self-close by remembering which elements can’t have meaningful content. In the days before XHTML, approximately nobody was confused about the distinction of which elements are self-closing and which have content.
chrisfinazzo
on July 6, 2023
[–]
Yet you can still apply styles - to an extent - to most of these. Even just margin/padding will affect many of them.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: