Given the following HTML code:

Which line of code should replace the first line to ensure that users can pause and restart the video?
A)

B)

C)

D)

To ensure that users can pause and restart the video, the controls attribute needs to be added to the <video> tag. This attribute provides the user with controls to play, pause, and adjust the volume of the video. The correct line of code that should replace the first line in the provided HTML to achieve this functionality is:
<video width='360' height='270' controls>
Here's the comprehensive explanation:
controls Attribute: The controls attribute is a boolean attribute. When present, it specifies that video controls should be displayed, allowing the user to control video playback, including pausing, playing, and seeking.
HTML Structure:
Original Line:
<video width='360' height='270'>
Revised Line:
<video width='360' height='270' controls>
Usage Example:
<video width='360' height='270' controls>
<source src='video.mp4' type='video/mp4'>
Your browser does not support the HTML5 video element.
</video>
In this example, adding the controls attribute provides the user with play, pause, and volume controls.
MDN Web Docs on <video>
W3C HTML5 Specification on <video>
Laurel
2 months agoKimbery
2 months agoCiara
2 months agoTennie
2 months agoJames
2 months agoErnie
2 months agoAvery
3 months agoAide
3 months agoKathrine
3 months agoDacia
4 months agoDetra
4 months agoAshton
4 months agoMari
4 months agoShawna
4 months agoScot
4 months agoLemuel
5 months agoSheridan
5 months agoAileen
5 months agoAdaline
5 months agoElvera
5 months agoDorcas
5 months agoJanine
6 months agoMy
6 months agoShaun
6 months agoPilar
25 days agoLawanda
1 month agoKattie
1 month agoFannie
1 month agoJannette
6 months ago