This is the content that expands and collapses. You can put any HTML elements inside here, such as paragraphs, lists, images, or even other widgets.
Feel free to click the summary again to hide this content.
Model: XYZ-123
Weight: 2.5 kg
Dimensions: 30cm x 20cm x 5cm
Material: Aluminium alloy
This section provides detailed specifications for the product.
An expand/collapse widget is a UI component that allows users to show or hide a section of content. It helps in organizing information and reducing visual clutter on a page.
The native HTML <details> and <summary> elements are often used to create these widgets, as demonstrated on this page. JavaScript can also be used for more custom implementations.