<details> and <summary> HTML elements, collectively referred to as a disclosure widget, are not easy to style.<details> is an HTML element that creates a disclosure widget in which additional information is hidden.There are a few interoperability issues that should be considered when styling the <details> and <summary> elements.We can add a transition animation to the opening and closing actions of a disclosure widget.A common UI pattern is an accordion component.The marker is associated with the <summary> element.You may want to style the “additional information” section of the disclosure widget without leaking styles to the <summary>.The good news is that there is an active proposal that addresses the styling of the marker.In the near future, you won’t need to write your own disclosure widget or use a third-party web component!<details> HTML element has gotten much easier to customize in CSS.