मराठी

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

Advertisements
Advertisements

प्रश्न

What would this CSS rule do?

p  {  color:red;
   }

पर्याय

  • 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

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Cascading Style Sheets (CSS) - Assignment [पृष्ठ २७४]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
पाठ 6 Cascading Style Sheets (CSS)
Assignment | Q 3. | पृष्ठ २७४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×