Standard Event Attributes HTML 4 added the ability to let events trigger actions in a browser, like starting a JavaScript when a user clicks on an element. To learn more about programming events, please visit our JavaScript tutorial and our DHTML tutorial. Below are the standard event attributes that can be inserted into HTML5 elements to define event actions. New : New event attributes in HTML5.