4 ms·
The final example of the DnD statt sheet makes me think whether it's legal to nest <dl>s? I.e. can we do <dl> <dt>Actions</dt> <dd><dl>...</dl
by cloud-oak 4mo ago
The final example of the DnD statt sheet makes me think whether it's legal to nest <dl>s?
I.e. can we do
<dl>
<dt>Actions</dt>
<dd><dl>...</dl></dd>
</dl>
- perilunar 4mo agoYes. Any flow content is permitted inside a <dd>. See: https://html.spec.whatwg.org/#the-dd-element https://html.spec.whatwg.org/#the-dd-element https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dd https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...
- moron4hire 4mo agoI do it to render nested JSON objects, for example.
- myfonj 4mo agoPlus, when curious about formal syntactic correctness, there is the validator.w3.org [1]. [1] https://validator.w3.org/nu/?showsource=yes&showoutline=yes&doc=data%3Atext%2Fhtml%3Bcharset%3Dutf-8%2C%253C%21doctype%2520html%253E%253Chtml%2520lang%253D%2522en%2522%253E%253Ctitle%253E.%253C%252Ftitle%253E%250A%253Cstyle%253Edl%2520%257B%2520border%253A%2520outset%253B%2520padding%253A%25201ch%253B%2520%257D%250A%2520%2520%2520%2520%2520%2520%2520dl%252C%2520dd%2520%257B%2520margin-block%253A%25201lh%253B%2520%257D%250A%2520%2520%2520%2520%2520%2520%2520dt%2520%257B%2520font-weight%253A%2520800%253B%2520letter-spacing%253A%2520.2ch%2520%257D%250A%253C%252Fstyle%253E%250A%253Cdl%253E%253Cdt%253ERoot%2520term%250A%2520%2520%2520%2520%253Cdd%253ERoot%2520definition%252C%2520with%2520%253Cdl%253E%253Cdt%253EChild%2520term%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%253Cdd%253EChild%2520Definition%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%253C%252Fdl%253E%250A%253C%252Fdl%253E https://validator.w3.org/nu/?showsource=yes&showoutline=yes&...