Re:Every HTML Element
by croisillon on Saturday January 25, 2025 @06:17PM
(#42825948)
you don't need a hyphen for a custom tag ; as far as i know the hyphen makes it an inline element while no hyphen makes it a block
[ Parent
| on HN ]
Re:Every HTML Element
by MrVandemar on Saturday January 25, 2025 @06:36PM
(#42826095)
You do need a hyphen for a custom-tag. The HTML specs have guaranteed never to create a tag with a hyphen, so it prevents collisions with any future tag additions.