Web technologies Questions | HTML Course | Practice Quiz 2 | Question 13

What is the correct representation to change the color of h2 element?
(A) h2 { background-color: #008000 }
(B) {h2 background-color: #008000}
(C) h2.all{ background-color: #008000 }
(D) {h2.all background-color: #008000}


Answer: (A)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.