/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Aspects of modern HTML/CSS you may not be familiar with
(lyra.horse)
451 points
todsacerdoti
| 1 comments |
28 Aug 25 20:49 UTC
|
HN request time: 0s
|
source
Show context
interstice
◴[
29 Aug 25 01:19 UTC
]
No.
45058930
[source]
▶
>>45056878 (OP)
#
> You are allowed to just make up elements as long as their names contain a hyphen
RIP any semblance of using meaningful tags for machine readability I guess.
replies(4):
>>45058975
#
>>45059016
#
>>45059216
#
>>45062064
#
voat
◴[
29 Aug 25 01:33 UTC
]
No.
45059016
[source]
▶
>>45058930
#
And even if they don't contain a hyphen! You can just <use> <anything> <you> <want>
replies(1):
>>45060531
#
masklinn
◴[
29 Aug 25 05:25 UTC
]
No.
45060531
[source]
▶
>>45059016
#
The soft-requirement for hyphens is a form of namespacing: nothing precludes whatwg from adding <use> or <want> elements to HTML in the future, and that would conflict with and possibly break your page.
replies(1):
>>45062110
#
1.
1718627440
◴[
29 Aug 25 09:50 UTC
]
No.
45062110
[source]
▶
>>45060531
#
To prove your point, <use> already exists although in SVG.
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/E...
ID:
GO
↑