Computer Applications
What property is used to change the text color of an element ?
- fontcolor:
- textcolor:
- color:
- font-color:
CSS
2 Likes
Answer
color:
Reason — color property is used to change the text color of an element. For example:
p {color : red ;}
Answered By
2 Likes
Related Questions
What is the correct CSS syntax for making all the
<span>
elements bold ?- span {text-size:bold}
- span {font-weight:bold}
<span style="font-size:bold">
<span style="text-size:bold">
In the following code snippet, what value is given for the left margin :
margin: 5px 10px 3px 8px;
- 3px
- 10px
- 8px
- 5px
Which is the correct CSS syntax ?
{p:color=black(p}
p {color: black;}
{p;color:black}
p:color=black
What is the correct CSS syntax to change the font name ?
- font-name:
- font:
- font-family:
- fontname: