<h1 id="title" onclick="alert('hello');">Hello</h1>
the above <h1> tag in HTML contains an onclick event. The onclick event attribute is when the end-user clicks on the <h1> heading. The
In the example above, a box will pop up that says
('hello') part of the script is referred to as the argument. It tells the function how to do what it has to do.