0
What went wrong
8 ответов
+ 4
Delete the quotes of the values of the attibutes and write instead "background-color" instead of bgcolor; the last one does not exist in css.
Like this:
p {
color: red;
background-color: green;
}
+ 3
Your CSS is not valid. You should write like above.
p{
color:red;
background-color:green;
}
+ 1
Thx Guyz it worked
0
delete body { and last } from your css.
0
Sorry didnt get ure point
0
your css code should be like p { color: red; background: green; } you dont need to surround it in a body {}
0
try red instead of "red"
0
in addition
for external css file we don't put quotation marks to the values,the correct syntax is
name:value;
thats why @ Coder #1 they were telling you to write
p{
color:red;
background-color:green;
}