T

Tina Singh • 10.85K Points
Tutor II

Q. If we want to set the style for just one element, which css selector will we use?

  • (A) id
  • (B) text
  • (C) class
  • (D) name
  • Correct Answer - Option(A)
  • Views: 132
  • Filed under category HTML

Explanation by: Tina Singh
The id attribute can be applied to any HTML element. The value of this attribute is a unique identifier of the element. For example, <h1 id="title"> “title” is a unique identifier of h1.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics