3 ms·
> Nested divs have no meaning That's pretty much true now[1], but the original meaning of "div" was "document division"[2] — i.e. they were similar to the curr
by perilunar 6y ago
> Nested divs have no meaning
That's pretty much true now[1], but the original meaning of "div" was "document division"[2] — i.e. they were similar to the current "section" element.
> outside of that the only way to express meaning of something like a modal or a popover is visually.
That is (was?) the point of 'semantic' CSS and the separation of concerns. A div is (now) just a generic block, but a div with an id or a classname means something dammit.
1. https://html.spec.whatwg.org/#the-div-element https://html.spec.whatwg.org/#the-div-element
2. https://www.w3.org/TR/2018/SPSD-html32-20180315/#div https://www.w3.org/TR/2018/SPSD-html32-20180315/#div