Why when i change an element color or a class color nothing happens? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why when i change an element color or a class color nothing happens?

So im new here and im learning html right now I've installed notepad++ and everything is fine But i tried to change a selected class color with this code .name { Background-color: black; Color: white; } Nothing changes And the code appear at the html page as a text And if you recommend me a text editor better than notepad++ i will be thankfull

30th Jan 2022, 6:45 AM
DAPPING WIZZARD
2 Answers
0
1. Please share your code so we can try to help you. 2. Vs code is probably the best code editor available and it’s free
30th Jan 2022, 7:25 AM
Moshe Schnitzler
Moshe Schnitzler - avatar
- 1
in css property name don't start with uppercase .name { background-color: black; color: white; }
30th Jan 2022, 8:09 AM
Vishal
Vishal - avatar