![javascript - How to change H2 color when BODY element's background color is toggled ON/OFF (CSS Class) by clicking a button? - Stack Overflow javascript - How to change H2 color when BODY element's background color is toggled ON/OFF (CSS Class) by clicking a button? - Stack Overflow](https://i.stack.imgur.com/rz2Ji.png)
javascript - How to change H2 color when BODY element's background color is toggled ON/OFF (CSS Class) by clicking a button? - Stack Overflow
![I'm in the very beginning of the CSS curriculum. It says to change all h2 elements to blue using a style tag. In the top middle you can see I did that I'm in the very beginning of the CSS curriculum. It says to change all h2 elements to blue using a style tag. In the top middle you can see I did that](https://i.redd.it/4lfu3080f8f51.jpg)
I'm in the very beginning of the CSS curriculum. It says to change all h2 elements to blue using a style tag. In the top middle you can see I did that
![javascript - How to change H2 color when BODY element's background color is toggled ON/OFF (CSS Class) by clicking a button? - Stack Overflow javascript - How to change H2 color when BODY element's background color is toggled ON/OFF (CSS Class) by clicking a button? - Stack Overflow](https://i.stack.imgur.com/fCpBO.png)
javascript - How to change H2 color when BODY element's background color is toggled ON/OFF (CSS Class) by clicking a button? - Stack Overflow
![Inside your style element, change the h2 selector to .red-text and update the color's value from blue to red. Give your h2 element the class attribute with a value of 'red-text' - Inside your style element, change the h2 selector to .red-text and update the color's value from blue to red. Give your h2 element the class attribute with a value of 'red-text' -](https://global.discourse-cdn.com/freecodecamp/optimized/3X/e/a/ea8645b15510311331591fdf92c124e2b4529a59_2_690x303.png)