Question: Write a function that takes two parameters, one that represents an id and one that represents a value that is a font size such as

Write a function that takes two parameters, one that represents an id and one that represents a value that is a font size such as 24pt or 56pt. The function changes the element with the id sent as the first parameter to have the text change to the size that was sent in the second parameter.

a) Now fill in the blanks below so that when you click the h5, the text in the h4, the h5, and the h3 All become 36pt in size by calling the function that you wrote above.

Ben Franklin

An investment in knowledge Another Franklin quote

________________________________________________________________

b) Now fill in the blanks below so that when you click the h5, the text in the h4 becomes 36pt, the h5 becomes 56pt, and the h3 becomes 76pt in size by calling the same function that you wrote above.

Ben Franklin

An investment in knowledge Another Franklin quote

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!