3 ms·
Imagine a parallel world where HTML block-level tags are useful and sensible. Let’s think through the ones which would actually be nice to have… I would start
by iambateman 4y ago
Imagine a parallel world where HTML block-level tags are useful and sensible. Let’s think through the ones which would actually be nice to have…
I would start with <block>, which would take the place of <div>. But, big twist, you could put anything inside of <HERE> and get default block behavior. That way you get <article> and <aside> for free and people would know that it’s arbitrary, thus feeling more free to be descriptive with their tags.
</rant>
- bXVsbGVy 4y agoYou don't need to imagine. You can do this today with one line of CSS and another of JS. Custom elements are part of HTML5: https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-api https://html.spec.whatwg.org/multipage/custom-elements.html#... And you can override the "display" property with CSS.
- afiori 4y agoIIRC <article> should essentially be what you would keep in reader mode.