Which attribute specifies a unique alphanumeric identifier to be associated with an element?

Minh Tung

New member
Which attribute specifies a unique alphanumeric identifier to be associated with an element?
A. class
B. id
C. article
D. html
 
Answer: b
Explanation: HTML is Hyper Text Markup Language which is used to create web pages and applications. The id attribute is most used to point to a style in a style sheet, and by JavaScript (via the HTML DOM) to manipulate the element with the specific id. Class is a name given to HTML elements which can be used by CSS and JavaScript for styling the web pages. A self-contained content is called attribute.
 

Tìm kiếm

Back
Top