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?
