4 ms·
Hasn't HTML the summary and details elements for this specifically, or am I overlooking something?
by tannhaeuser 6y ago
Hasn't HTML the summary and details elements for this specifically, or am I overlooking something?
- StavrosK 6y agoAs far as I know, those work quite differently.
- tpoacher 6y agoNot the author, but presumably you're overlooking the fact that the expounded term doesn't necessarily have to be "inside" or even "neighbouring" to the details element. The author's intent here is to have terms explained in the text explicitly in such a way that it would 'augment' the text with an explanation somewhere further down the line, but not necessarily "in-place". It is also intended for text specifically, rather than replacing one element with another. I agree that display/summary are similar in spirit though, I had not come across those before.
- gwern 6y ago<abbr>/<defn> are also quite relevant, and would fit a number of the example uses better (like the definition of 'atoms').