WIP
Edit me
Advised markup
Emmet
details>summary[role="button"][tabindex="0"][aria-controls="content"]{title}+#content[hidden=""]{content text}
HTML
<details>
<summary role="button" tabindex="0" aria-controls="content">
Title here
</summary>
<div id="content" hidden>
Content here
</div>
</details>
Screen reader results
Closed <details>
Screen reader |
voiceover (macOs) 10 (767)
|
ChromeVox 53
|
Browser |
Firefox
90
|
Chrome
62
|
Spoken output |
Test, collapsed, summary | Test » content |
Skipped |
false | false |
Open <details>
Screen reader |
voiceover (macOs) 10 (767)
|
ChromeVox 53
|
Browser |
Firefox
90
|
Chrome
62
|
Spoken output |
Test, expanded, summary » content | Test » content |
Skipped |
false | false |
<details> with missing <summary>
Screen reader |
voiceover (macOs) 10 (767)
|
ChromeVox 53
|
Browser |
Chrome
91
|
Safari
14
|
Firefox
90
|
Chrome
91
|
Spoken output |
Details, disclosure triangle » content | Details, expanded, summary » content | content » Details, expanded, summary | content |
Skipped |
false | false | false | false |
<details> with fallback ARIA attributes
Browser support
Can I Use details? Data on support for the details feature across the major browsers from caniuse.com.
Specifications