HTML and CSS Reference
When implementing the HTML5 video element, how do you ensure that the rendering
of the element can function in different browsers?
A. You need to do nothing, because HTML5 is now a standard specification.
Specify all the source video types in the src attribute of the video element.
Include the <source> element for each video type so that each browser can play
the version that it supports.
Include the <object> element for each video type so that the browser can play the
version that it supports.
When drawing on the HTML5 <canvas> element, what method is used on the context
to begin drawing at a new point?
When performance is critical for an HTML5 graphics application, what should you use?
A. <canvas> using a declarative syntax to create the graphics
B. <svg> using a declarative syntax to create the graphics
D. <svg> and <canvas> combination to leverage the best performance of both
The section covers applying styles to the HTML elements on the page dynamically, using
you can then manipulate those elements, including their styles.
This objective covers how to:
■ Change the location of an element
■ Apply a transform
■ Show and hide elements