Multiple choice css

Which HTML attribute is used to define inline styles?

  1. styles

  2. class

  3. font

  4. style

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The style attribute applies CSS directly to HTML elements inline. Option A is a common typo, B is for reusable classes, and C is not a valid attribute. Inline styles use style="property:value" syntax.