Multiple Choice
Joshua has created a web page and implemented CSS in it. He has applied the style property to inline styles that can also be used with style rules and with style sheets. However, he wants to change a CSS rule in the stylesheet from h2 { color: blue; } to h3 { color: green; font-size: 1.2em; }
A) document.styleSheets[0]. cssRules[1].selectorText = "h2"; document.styleSheets[0]. cssRules[1].style.color = "blue"; document.styleSheets[0] .cssRules[1].style.fontSize = "1.2em";
B) document.styleSheets[1]. cssRules[0].selectorText = "h3"; document.styleSheets[1]. cssRules[0].style.color = "green"; document.styleSheets[0] .cssRules[1].style.fontSize = "1.2em";
C) document.styleSheets[1]. cssRules[0].selectorText = "h2"; document.styleSheets[1]. cssRules[0].style.color = "blue"; document.styleSheets[0] .cssRules[1].style.fontSize = "1.2em";
D) document.styleSheets[0]. cssRules[1].selectorText = "h3"; document.styleSheets[0]. cssRules[1].style.color = "green"; document.styleSheets[0] .cssRules[1].style.fontSize = "1.2em";
Correct Answer:

Verified
Correct Answer:
Verified
Q16: Identify a true statement about the method
Q17: The _ method traverses all of the
Q18: Which of the following methods returns the
Q19: When the node.nodeType property returns a value
Q20: Case-Based Critical Thinking Questions Case 12-3 Natasha
Q22: Which of the following methods includes or
Q23: The _ method can be used to
Q24: The _ method discards the old node
Q25: The selectorText property can only be used
Q26: All the versions of Internet Explorer before