πŸ“Š HTML
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) id

Explanation: 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.

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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
250
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tina Singh
Publisher
πŸ“ˆ
85%
Success Rate