3 ms·
I noticed <details> made the list but not <summary>. Is the latter a well-known tag compared to the former? In any case, semantic HTML is nice because they usua
by koito17 3y ago
I noticed <details> made the list but not <summary>. Is the latter a well-known tag compared to the former? In any case, semantic HTML is nice because they usually have good accessibility attributes by default.
In general, <summary>, <details>, <aside>, <main>, <nav>, and <dialog> prove to be highly useful for quickly hacking together a personal site without having to write much JavaScript, if at all.
- spondyl 3y agoI assume <summary> was not explicitly mentioned because it generally only appears as a child of <details>. It's not intended to be used in the same way as say; <article> to my knowledge > A <summary> element may only be used as the first child of a <details> element https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary https://developer.mozilla.org/en-US/docs/Web/HTML/Element/su...