English

Rajat, a web developer, wants to show a video named “tiger.mp4” in dimensions of 300px width and 200px height on the web page. Help Rajat by writing its HTML code. - Computer Applications

Advertisements
Advertisements

Question

Rajat, a web developer, wants to show a video named “tiger.mp4” in dimensions of 300px width and 200px height on the web page. Help Rajat by writing its HTML code.

Short Note

Solution

HTML code to add a video to a web page:

<video width="300" height="200" controls>
<source src="tiger.mp4" type="video/mp4">
</video>
shaalaa.com

Notes

1 mark for correct usage of <video>.

1 mark for correct usage of <source> tag.

½ mark each for correct usage of height and width attributes.

Inserting Audio and Video
  Is there an error in this question or solution?
2023-2024 (March) Board Sample Paper by shaalaa.com
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×