Events Flashcards
1
Q
When a button, displaying “Click me.”, is clicked the function “myFunction” should be executed.
A
Click me.
2
Q
Create a div containing the text “myDIV”. When the mouse moves over it, the background turns red.
A
<div> myDIV </div>