1.

All elements are identified by their __________ and are marked up using either start tags and end tags or self-closing tags.(a) attribute name(b) tag name(c) class name(d) none of the mentionedThe question was asked by my college director while I was bunking the class.This intriguing question comes from Major HTML5 Themes topic in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct option is (b) TAG name

The explanation: The ATTRIBUTE name DESCRIBES name of element. The tagName property returns the tag name of the element. In HTML, the returned VALUE of the tagName property is always in UPPERCASE. Name of CLASS is returned by class name.



Discussion

No Comment Found

Related InterviewSolutions