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?
A.
<
video id= -myVideo- height=-320- width=-400- src=-myVideo.vtt- contextmenu=-pauseplay-
>
<
/video
>
B.
<
video id=-myVideon height-=-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
>
Explanation:
The HTML
<
video
>
Element
To show a video in HTML, use the
<
video
>
element:
The controls attribute adds video controls, like play, pause, and volume.
Example
<
video width=-320- height=-240- controls
>
<
source src=-movie.mp4- type=-video/mp4-
>
<
source src=-movie.ogg- type=-video/ogg-
>
Your browser does not support the video tag.
<
/video
>
Reference: HTML5 Video
looks better:
https://www.freecram.com/question/Microsoft.70-480.v2018-08-30.q166/you-are-creating-an-html5-application-that-allows-users-to-play-video-on-a-page-by-using-the-video-element
0
0