PrepAway - Latest Free Exam Questions & Answers

Which line of code should you add to the page?

You are creating an HTML5 application that allows users to play video on a page by using
the VIDEO element.
You need to enable the user to start, stop, and pause the video.
Which line of code should you add to the page?

PrepAway - Latest Free Exam Questions & Answers

A.
<video id= “myVideo” height=”320″ width=”400″ src=”myVideo.vtt”
contextmenu=”pauseplay”> </video>

B.
<video id=”myVideon heigh”=”320″ width=”400″ src=”myVideo.vtt” controls> </video>

C.
<video _d=”myVideon height=”320″ width=”400″ src=”myVideo.vtt” autoplay> </video>

D.
<video id=”myVideo” height=”320″ width=”400″ src=”myVideo.vtt”
contextinenu=”Startstopn> </video>


Leave a Reply