Choose the correct CSS syntax out of the following -
1)p{color-black;}
2)p{color:black;}
3){p-color:black;}
4)p color:black;
PLEASE ANSWER FAST IT IS URGENT!!!
Answers
Answered by
0
Out of the all given CSS syntax the correct one is p{color:black;}(Option 2).
- CSS selectors are used to "find" (or choose) the HTML elements to style. In CSS, the selector p refers to the HTML element you want to style: <p>. Black is the property value of color, which is a property. The text's color is controlled by the color parameter.
- The color is determined by the following factors: a color name - for example, "red". This also can be a HEX value - like "#000000", an RGB value - like "rgb(0,0,0".
#SPJ3
Answered by
1
Answer:
The correct answer is option (2)
p{color:black;}
Explanation:
In CSS(Cascading Style Sheet), we apply properties by the following syntax
tagname{
property-name: property-value;
}
For changing the color of the paragraph to black, we need to write like:
p{ color: black; }
So option (2) is correct.
#SPJ3
Similar questions