Multiple choice

Attributes are always added to the

  1. start tag of an HTML element

  2. start tag of an HTML program

  3. end tag of an HTML element

  4. none of these

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

In HTML, attributes are always specified in the start tag (opening tag) of an element. End tags (closing tags) cannot contain attributes. This is a fundamental rule of HTML syntax - attributes like id, class, href, src always appear in the opening tag.