English

What property is used to change the text color of an element?

Advertisements
Advertisements

Question

What property is used to change the text color of an element?

Options

  • fontcolor:

  • textcolor:

  • color:

  • font-color:

MCQ
Advertisements

Solution

color:

Explanation:

An element’s text colour can be altered using the colour property. For example:

p {color : red ;}
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assisted Practice [Page 271]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assisted Practice | Q 8. | Page 271
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×