Question: Which of the following methods will allow a CSS class to be added to an existing HTML element without overwriting its existing CSS class specifications?
Which of the following methods will allow a CSS class to be added to an existing HTML element without overwriting its existing CSS class specifications?
Question Answer
a
theElement.class.appendnewStyle;
b
theElement.classList.appendnewStyle;
c
theElement.class.addnewStyle;
d
theElement.className.appendnewStyle;
e
theElement.classList.addnewStyle;
f
theElement.className.addnewStyle;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
