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>
Avery
14 hours agoAide
6 days agoKathrine
11 days agoDacia
16 days agoDetra
21 days agoAshton
26 days agoMari
1 month agoShawna
1 month agoScot
1 month agoLemuel
2 months agoSheridan
2 months agoAileen
2 months agoAdaline
2 months agoElvera
2 months agoDorcas
2 months agoJanine
3 months agoMy
3 months agoShaun
3 months agoJannette
3 months ago