139k views
1 vote
Open your text editor and then open the index.html template file (provided for you in Module 10). In the index.html document, update the comment at the top of the page to include today’s date and your name. In the main element of the index.html document, insert a video element with autoplay and controls attributes. Specify the following three source files within the video element and insert the appropriate type attribute and value for each source. src="media/volunteer.mp4" src="media/volunteer.ogg"

User Eric Barr
by
7.5k points

1 Answer

3 votes

Final answer:

Update the comment in the index.html file with your name and today's date. Insert a video element within the main element of the HTML document, including autoplay and controls attributes, as well as source elements for mp4 and ogg video files with their respective type attributes.

Step-by-step explanation:

To update the comment in the index.html template file with today's date and your name, locate the comment at the top of the file and modify its content accordingly. For example, if the existing comment is <!-- Template provided by Module 10 -->, you would update it to <!-- Template provided by Module 10 - Updated on 04/01/2023 by [Your Name] -->.

To insert a video element with autoplay and controls attributes in the main element of the index.html document, you would use the following HTML code:

<video autoplay controls>
<source src="media/volunteer.mp4" type="video/mp4">
<source src="media/volunteer.ogg" type="video/ogg">
<p>Your browser does not support the video tag.</p>
</video>

Please note that you must make sure that the correct file paths are provided for the source elements and that the appropriate type attributes are set to match the video formats: "video/mp4" for MP4 files and "video/ogg" for OGG files.To update the comment at the top of the page to include today’s date and your name, you can use HTML comments. Inside the <body> tag, you can insert a video element with autoplay and controls attributes. You will also need to specify the source files within the video element and insert the appropriate type attribute and value for each source.

User Iamtankist
by
7.6k points