HTML and CSS Reference
In-Depth Information
Correct answer: B
3.
Incorrect: The DOM is dynamic and changes physically when items are removed
from it.
A.
Correct: When an element is removed and needed again, a reference to the
removed node must be kept to be able to add it back.
B.
Incorrect: No such method exists.
C.
Incorrect: A node can be added back to the DOM if a reference was kept. This is
accomplished by using the various methods available to insert nodes in the DOM.
D.
Correct answer: C
4.
Incorrect: Different browsers support different media formats. Use the <source>
element to provide the media in the various formats.
A.
Incorrect: The src attribute allows you to specify only one source video. This
doesn't work across multiple browsers unless the video format is supported across
the browsers.
B.
Correct: The <source> elements specify multiple video formats so that the
browser can choose the correct one.
C.
Incorrect: The <object> element is supported to provide a fallback mechanism in
the event that the browser doesn't support the HTML5 <video> element.
D.
Correct answer: C
5.
Incorrect: The moveTo method moves the current context to a new point but
doesn't begin a drawing.
A.
Incorrect: The lineAt method draws a line within the current positional context.
B.
Correct: The beginPath method tells the context to start a new drawing from its
current point.
C.
Incorrect: The stroke method tells the context to draw the graphics that are
applied to the context.
D.
Correct answer: C
6.
Incorrect: The <canvas> element doesn't support any declarative elements.
A.
Incorrect: The <svg> element has poorer performance than the <canvas>
element when a lot of graphic refresh is required.
B.
Correct: The <canvas> element provides superior performance compared to the
<svg> element.
C.
Incorrect: The <canvas> and <svg> elements combined don't provide better
performance. The <canvas> element provides superior performance when the
graphics require a lot of refreshing.
D.
Search WWH ::




Custom Search