Question: Write and register an event handler that changes the background color of the h 1 tag to blue on mouseout.Write and register an event handler

Write and register an event handler that changes the background color of the h1 tag to blue on mouseout.Write and register an event handler that changes the background color of the h1 tag to blue on mouseout.
Checking background color on h1 element before any event
Yours Yours has no value
x Checking background color on h1 after event on h1
Yours and expected differ. See highlights below.
Yours Yours has no value
Expected
Checking background color on h2 after event on h2
Yours Yours has no value
Checking background color on h3 after event on h3
Yours Yours has no value
Checking background color on p after event on p
Yours Yours has no value
HTML
JavaScript
 Write and register an event handler that changes the background color

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!