1.

Which attribute specifies a unique alphanumeric identifier to be associated with an element?(a) class(b) id(c) article(d) htmlThe question was posed to me in an online interview.This interesting question is from HTML and XHTML Element Reference in portion HTML and XHTML Fundamentals of HTML

Answer»

Right option is (b) ID

Easy 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.



Discussion

No Comment Found

Related InterviewSolutions