5 ms·
It's already a good idea to add elements where logical, even when unnecessary, to aid styling, scripts, coder comprehension, and sometimes automated comprehensi
by twhb 10y ago
It's already a good idea to add elements where logical, even when unnecessary, to aid styling, scripts, coder comprehension, and sometimes automated comprehension, and to reduce likelihood it must be edited later. One could argue that rows always form logical units - certainly in the above example - and thus should always be wrapped. WHATWG does permit wrapping dt-dd groups in divs.
- c-smile 10y agoThat "good idea" has a name "tag soup". But even you can add some non-semantic DOM elements... What if you have <ol> <li>first</li> <li>second</li> <li>third</li> </ol> And you want to replace them in two,three,etc. aligned columns (depending on view size), like these: @media handheld { ul { flow:vertical; } } @media ... { ul { flow:row(li,li); } // two columns } @media ... { ul { flow:row(li,li,li); } // three columns }