HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML ontoggle Attribute

HTML ontoggle Attribute



The ontoggle attribute fires when the user opens or closes a details element. The details element actually specifies additional details for the user so that she/he can view or hide that information.


Used With:-


Elements Event
details ontoggle




Its syntax is:- < element ontoggle="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML