Beginner
HTML & CSS
Q27 / 100
What is the correct way to add an inline style to an HTML element?
Correct! Well done.
Incorrect.
The correct answer is A) <p style="color:red;">Text</p>
A
Correct Answer
<p style="color:red;">Text</p>
Explanation
The "style" attribute applies CSS declarations directly to a single element.
Progress
27/100