Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

Answers CHAPTER 11 457



  1. Correct answers: A, B, and D
    A. Correct: The .mp4 format is becoming popular on the latest browsers.
    B. Correct: The .wav format is compatible with most browsers.
    C. Incorrect: The .h264 format is a video format.
    D. Correct: The .oga format is compatible with most browsers.


Lesson 3



  1. Correct answer: A
    A. Correct: The

  2. Correct answer: D
    A. Incorrect: The preload property is used to indicate whether you want to preload
    the data.
    B. Incorrect: The readyState property is used to identify the current state of the
    media.
    C. Incorrect: The seekable property is used to indicate whether the media can be
    seeked.
    D. Correct: The loop property is used to indicate that you want to repeat the media
    continuously when it reaches its end of stream.

  3. Correct answer: D
    A. Incorrect: The onstalled event triggers when the browser is unable to retrieve the
    media.
    B. Incorrect: The onseeked event triggers when seeking has ended, after you per-
    form a seek operation.
    C. Incorrect: The onplay event triggers when the media starts playing.
    D. Correct: The onloadeddata event triggers when the media is loaded.

Free download pdf