Html miscellaneous
- Which of the following is not a template library?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
There are templating libraries like Handlebars, Mustache, Underscore JS library. Handlebars are like regular HTML which is embedded with handlebars expressions, Mustache is used with JavaScript, Underscore JS library is one of the JavaScript libraries which provides various useful functional programming.
- Which of the following is not DOM property?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
For generating DOM we use certain DOM properties or methods. Some of the DOM methods are element.appendChild(node), document.createElement(), element.innerHTML, document.removeElement().
- Which browser does not support element?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
On desktop <template> element is supported by most of the browser like Chrome, Edge, Opera, Safari, Firefox. Internet Explorer does not support this element. On mobile, it is supported by Edge mobile, Firefox for Android and iOS Safari.
- <template> does not include the attribute ___________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
<template> only include global attributes. Id, hidden, lang, onsubmit, ontoggle, onwaiting, onplay, onmousemove, onmousedown, onblur, oncancel, oncanplay, onabort, title etc. are some of the global attributes.
- The .content property is __________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The .content property is a read-only property i.e a DocumentFragment which contains guts of template.