English

What would this CSS rule do? p { color:red; }

Advertisements
Advertisements

Question

What would this CSS rule do?

p  {  color:red;
   }

Options

  • Make the background of all paragraphs red.

  • Make the fonts of all paragraphs red.

  • Make all text boxes red.

  • Make the border of all paragraphs red.

MCQ
Advertisements

Solution

Make the fonts of all paragraphs red.

Explanation:

The breakdown of this CSS rule is as follows:

  • p: This is the CSS selector used to target all paragraph () elements in the HTML structure.
  • {}: These curly brackets contain the declaration block, which holds one or more style definitions.
  • color:red;: This specific declaration defines the style. It changes the text color property value to red for the targeted elements.
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assignment [Page 274]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assignment | Q 3. | Page 274
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×