name
The name property of the HTMLDetailsElement interface reflects the name attribute of
elements. It enables multiple
elements to be connected together, where only one for the
elements can be open at once. This allows developers to easily create UI features such as accordions without scripting.