Given the following HTML code:

Which line of code should replace the first line to ensure that users can pause and restart the video?
Correct Answer: C
To ensure that users can pause and restart the video, thecontrolsattribute 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:
* controlsAttribute: Thecontrolsattribute 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 thecontrolsattribute provides the user with play, pause, and volume controls.
:
MDN Web Docs on<video>
W3C HTML5 Specification on<video>