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 onclick Attribute

HTML onclick Attribute



The onclick attribute fires on a mouse click on the element.


Used With:-


Elements Event
All elements in HTML onclick




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

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML