Multiple choice html

Fill in the following:

  1. selector

  2. attribute

  3. property

  4. decleration

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

In HTML syntax, 'attribute' is the correct term for the name='value' pairs inside element tags. The blank in '

' represents where the attribute name goes, followed by = and its value in quotes. A 'selector' is a CSS concept for targeting elements. A 'property' is CSS terminology. 'Declaration' is also CSS terminology referring to property-value pairs within style rules.

AI explanation

In HTML syntax, <h1> is the correct term: an attribute is a name/value pair placed inside the opening tag of an HTML element that modifies its behavior or provides additional information (e.g., id, class, style). 'Selector' and 'declaration' are CSS terms (a selector targets elements, a declaration is a property:value pair inside a CSS rule) and don't apply to HTML tag syntax. 'Property' is also a CSS concept (the first part of a declaration, like color or font-size), not something used inside an HTML tag. So 'attribute' is the only term that correctly describes this HTML construct.