This set of HTML Assessment Questions and Answers focuses on “HTML5 Semantics – 3”.
1. Which element represents a dialog box?
Explanation: <dialog> element in HTML represents a dialog box or other interactive component like window or an inspector. This element includes global attributes. The tableindex attribute must not be used on <dialog> element.
2. Which element is known as Disclosure Summary element?
Explanation: <summary> element is known as Disclosure Summary element. It specifies caption, summary or legend for <details> element’s disclosure box. This element only includes global attribute. This element may only be used as the first child of <details> element.
3. Which element represents group of commands that user can activate or perform?
Explanation: <menu> element in HTML represents group of commands that user can perform or activate. This include list menu as well as context menus. List menus appear across top of a screen and context menus might appear underneath a button after it has been clicked.
4. Which of the following is not a web component element?
Explanation: There are web components in HTML related technology which makes it possible to essentially create and use custom elements as if it were regular HTML. You can also create custom versions of standard HTML elements. Some of the elements are <shadow>, <content>, <element>, <template>, <slot>.
5. Which of the following element is for holding client-side content?
6. Which element is a placeholder inside web component?
Explanation: <slot> element in HTML is a part of Web Components technology suite. It is a placeholder inside web component that you can fill with own markup that lets you create separate DOM trees and present them together.
7. Which element is used for defining a new custom DOM elements?
8. Which element is not a obsolete?
Explanation: Obsolete elements are old HTML elements which are deprecated and should not be used. They should never be used in new projects, and should replace them in old projects as soon as we can. <acronym>, <basefont>, <applet>, <big>, <bgsound>, <command>, <content>, <dir>, <center> are some of the obsolete elements.
9. Which element sets default font face, size and color for other elements?
Explanation: <basefont> is obsolete HTML element. It sets default font face, size, and color for other elements which are descended from its parent element. Instead of using this element we can use font, font-size, font-family and color to change font configuration for an element.
10. For background sound obsolete element was __________
Explanation: <bgsound> element only used by Internet Explorer is Background Sound element. It sets up a sound file to play in background while the page is used. We use <audio> instead of this element.
11. Which element is used to show the text slowly?
Explanation: <blink> element is non standard element in HTML. It causes enclosed text to flash slowly. But this element is unsupported and thus implements HTMLUnknownElement interface.
12. Which element is used as a container for a directory of files?
Explanation: <dir> element is used as a container for directory of files or folders, potentially with styles and icons applied by user agent. It is recommended not to use this element you can use <ul> element for lists including lists of files.
13. Which element puts a text field in a page for querying document?
Explanation: <isindex> is an obsolete HTML element. It puts a text field in a page for querying the document. It is deprecated as of HTML 4.1, because same behavior can be achieved with HTML form. All major browsers have now removed <isindex>.
14. Which element facilitate generation of key material?
Explanation: <keygen> element exists to facilitate generation of key material and submission of public key as part of HTML form. It is designed to use with web-based certificate management systems. It includes all the global attributes like autofocus, challenge etc.
15. Which element is used for inserting scrolling area of text?
Explanation: <marquee> element is used to insert scrolling area of text. You can control what happens when text reaches edges of its content area using its attributes. It includes the attributes behavior, bgcolor, height, hspace, loop etc.
Sanfoundry Global Education & Learning Series – HTML.
To practice all areas of HTML Assessment Questions, here is complete set of 1000+ Multiple Choice Questions and Answers.