Test Series - html

Test Number 22/72

Q: 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 mentioned
Solution: 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.
Q: The __________ element represents a span of text that is isolated from its surroundings for the purposes of bidirectional text formatting.
A. b
B. bdi
C. bdo
D. base
Solution: The base Url target relative to all URL’s in document is specified by base tag in html. B is for bold text representation. bdi stands for Bi-directional Isolation. This element is useful when embedding user-generated content with an unknown directionality. Direction of text is displayed by bdo element.
Q: The interactive element audio with the attribute controls must not appear as a descendant of which element?
A. a
B. button
C. audio
D. both a and button
Solution: The anchor and the button tag acts as link which cannot be a parent of audio element.
Q: A ____________ element must have a start tag but must not have an end tag.
A. details
B. command
C. code
D. both details and command
Solution: The command tag is new in HTML5 and specifies a normal command with an action. Details has end tag.
Q: Which type attribute of input element sets the element’s value to a string representing a number?
A. range
B. email
C. file
D. file
Solution: The input element with a type attribute whose value is “range” represents an imprecise control for setting the element’s value to a string representing a number.
Q: Which of the following type attributes of input element defines control for entering a telephone number?
A. mob
B. tel
C. mobile
D. telephone
Solution: The input element with a type attribute whose value is “tel” represents a one-line plain-text edit control for entering a telephone number.
Q: Which element represents a control for generating a public-private key pair?
A. ins
B. keygen
C. key
D. command
Solution: The command tag is new in HTML5 and specifies a normal command with an action. The keygen element represents a control for generating a public-private key pair and for submitting the public key from that key pair.
Q: The World Wide Web’s markup language has always been HTML.
A. True
B. False
C. 1
D. 0
Solution: The World Wide Web’s markup language has always been HTML. HTML was primarily designed as a language for semantically describing scientific documents, although its general design and adaptations over the years have enabled it to be used to describe a number of other types of documents.
Q: Which element represents marked or highlighted text for reference purposes?
A. highlight
B. mark
C. strong
D. blink
Solution: Highlight element is used to highlight a particular text when used in a document. Strong element specifies the importance of text. The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. An enclosed text which flashes later on is created by blink element.
Q: Which element(s) represents a section of a document that links to other documents?
A. navigation
B. anchor tag
C. nav
D. option
Solution: The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links.

You Have Score    /10