Computer Applications
Which is the correct CSS syntax ?
{p:color=black(p}p {color: black;}{p;color:black}p:color=black
CSS
3 Likes
Answer
p {color: black;}
Reason — The correct CSS syntax is :
selector {color : value ;}
The option p {color: black;} follows correct CSS syntax.
Answered By
2 Likes
Related Questions
In the following code snippet, what value is given for the left margin :
margin: 5px 10px 3px 8px;- 3px
- 10px
- 8px
- 5px
What property is used to change the text color of an element ?
- fontcolor:
- textcolor:
- color:
- font-color:
What is the correct CSS syntax to change the font name ?
- font-name:
- font:
- font-family:
- fontname:
Which HTML attribute is used to define inline CSS styles ?
- css
- style
- type
- id