Changing color of an element in css

Changing color of an element in css
0.0 0

#1

I’m not sure why this isn’t coding properly: (asterisks removed)
*
h2 {color: blue;}
*


#2

color: changes text color, is that what you want to do? you probably meant background-color:
whats in html?


#3

That’s correct but what are you trying to do? Like the above camper said, are you maybe trying to write css code in and html section?


#4

It’s worth mentioning that the conventional way to write this is:

h2 {
color: blue;
}

When you have many key-value pairs you’ll see that it’s more readable this way, and consistency is important in coding.


#5

Yeah that is correct, i tried to help with the issue, formatting is important too)