We use jQuery or javascript to create an Accordion, but now HTML gives their own tag to create accordion without using any scripting language. Generally, the accordion has two functionality open and close, we create that state using jQuery or Javascript in web development. Now we don't need any scripting language to create that state
Details Tag have already two State Open and close, we can use this tag to create Accordion, in this process, we have another tag "summary" that is used to create the heading of Accordion.
----------------------------------------------------
HTML
CSS
WEB DEVELOPMENT