42. What is the purpose of the details element?
<details> creates a native disclosure widget. The <summary> child acts as the visible control. It can provide expandable information without custom JavaScript for the basic interaction.
Key Takeaways
- details provides native disclosure behavior.
- summary labels the disclosure.
Knowledge Check
Which element is used as the control inside details?