Multiple choice technology web technology

How to use style for an paragraph?

  1. style attribute

  2. class attribute

  3. id attribute

  4. name attribute

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

The style attribute is used to apply CSS styling directly to an HTML element, including paragraphs. For example:

. The class attribute is for CSS classes, id for unique identifiers, and name doesn't apply styling.