Which attribute is used to define inline styles in HTML?
Correct answer
A. style
13 views
A. style
13 views
The style attribute defines inline styles, applying CSS directly to one element: <p style="color:red;">.
Inline styles have the highest specificity, so they override rules in internal and external style sheets. They are best kept for quick tests; external CSS is easier to maintain.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.