The change in the state of an object is known as an Event.
An HTML event can be something the browser does, or something a user does.
Here are some examples of HTML events:
• An HTML web page has finished loading
• An HTML input field was changed
• An HTML button was clicked
Often, when events happen, you may want to do something.
With single quotes:
With double quotes:
In the following example, an
onclick attribute (with code), is added to a