Interactive Elements in HTML
Category: Web Development & Approved by adwivedi008@gmail.com On January-04-2021 20:41:08
“ Interactive Elements in HTML”
- MENU ELEMENT:
The HTML
- DIALOG ELEMENT
The HTML
- DETAILS ELEMENT
The HTML Details Element () creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the element.
A disclosure widget is typically presented onscreen using a small triangle which rotates (or twists) to indicate open/closed status, with a label next to the triangle. If the first child of the element is a , the contents of the element are used as the label for the disclosure widget.
- SUMMARY ELEMENT
The HTML Disclosure Summary element () element specifies a summary, caption, or legend for a element's disclosure box. Clicking the element toggles the state of the parent element open and closed.
With Help of the
Details and Summary element you can create a show more or show less content.
Note: this content is taken from developer.mozilla.org html reference