Multiple choice css

Which HTML attribute is used to define inline styles?

  1. font

  2. styles

  3. css

  4. text

  5. style

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

The style attribute allows CSS rules to be applied directly to HTML elements. It uses the same syntax as CSS but without selectors, and is called inline because the styles are written inside the HTML opening tag itself.