Test Series - html

Test Number 19/72

Q: Which of the following is not a type of attribute for input tag?
A. day
B. week
C. month
D. time
Solution: Day is not defined in the pre-defined attribute list of input tag. Week attribute defines week and year when used as attribute in input tag. Month specifies month and year when it is accessed in input tag. The time attribute displays current time in html.
Q: The new __________ element is supposed to represent some form of extra details, such as a tooltip or revealed region that may be shown to a user.
A. progress
B. meter
C. details
D. menu
Solution: A scalar measurement within a range or fractional value is defined by meter tag. A list/menu of coommands is displayed by menu tag in html. The details tag specifies additional details that the user can view or hide on demand. The details tag can be used to create an interactive widget that the user can open and close. Any sort of content can be put inside the 
tag. Progress of a task is done by progress element.
Q: The __________ element may contain not just links but also other interactive items, including the newly introduced command element.
A. progress
B. meter
C. details
D. menu
Solution: A scalar measurement within a range or fractional value is defined by meter tag. The menu tag defines a list/menu of commands. The menu tag is used for context menus, toolbars and for listing form controls and commands. The details tag specifies additional details that the user can view or hide on demand. The details tag can be used to create an interactive widget that the user can open and close. Any sort of content can be put inside the 
tag. Progress of a task is done by progress element.
Q: The __________ attribute effectively renders the iframe as an inline include, which allows the parent document’s CSS to affect the contents of the iframe.
A. allow-forms
B. seamless
C. embed
D. allow-scripts
Solution: Embed attribute attach external content at a specified point in document. The seamless attribute is a boolean attribute. When present, it specifies that the iframe should look like it is a part of the containing document (no borders or scrollbars). Allow-forms re-enables from submission. Scripts are re-enabled by allow-scripts.
Q: Which of the following allows the sandboxed iframe to run scripts from the same domain?
A. allow-same-origin
B. allow-forms
C. allow-scripts
D. allow-pointer-lock
Solution: Scripts are re-enabled by allow-scripts. The sandbox attribute enables an extra set of restrictions for the content in the iframe. Allow-forms re-enables from submission. Allow-same-origin allows iframe content to be treated as being from the same origin. API’s are re-enable by allow-pointer-lock.
Q: __________ allows the iframe to pull in content from elsewhere in the same domain.
A. allow-same-origin
B. allow-forms
C. allow-scripts
D. allow-pointer-lock
Solution: Scripts are re-enabled by allow-scripts. Allow-forms re-enables from submission. Allow-same-origin allows iframe content to be treated as being from the same origin. API’s are re-enable by allow-pointer-lock.
Q: Which of the following is not a HTML5 added form element?
A. 
B. 
C. 
D. 
Solution: ,  and  are HTML5 added form element. Element  is not a HTML5 added form element. Password is an attribute used in input type in HTML.
Q: Which element specifies a list of pre-defined options for an input element?
A. 
B. 
C. 
D. 
Solution: The datalist tag is used to provide an “autocomplete” feature on input elements. Users will see a drop-down list of pre-defined options as they input data. Password defines password field in HTML. It is attribute for input-type. The  element references from data after form has submitted. Result of calculation (script) is represented by output tag.
Q: Which of the following defines a group of related options in a drop-down list?
A. 
B. 
C. 
D. 
Solution: HTML form element is used in its  tag having its own structure which is used by users for various tasks. If you have a long list of options, groups of related options are easier to handle for a user. Result of calculation (script) is represented by output tag. A drop down list of items is defined by 
Q: What does ‘On-Screen Action’ means in the testing of HTML5 applications?
A. Using Drag action
B. Using new input type
C. Using play and pause action of audio and video elements
D. Verifying SVG and Canvas elements
Solution: While testing of HTML5 for a browser i.e. whether its elements are supported by the browser or not one can use draggable content using Drag action and this action can be called through On-Screen Action operation.

You Have Score    /10