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.
________________________________________________________________
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started