Question:

I. Write the HTML code to embed a video file named documentary.mp4 into a webpage. The video should have a width of 400 pixels and a height of 300 pixels. It should display playback controls.
II. Which attribute of the <font> tag is used to specify the font family?

Show Hint

Use the video tag with width, height and controls. The font tag sets family with the attribute named after the typeface's face.
Updated On: Nov 3, 2026
Show Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Understand the two parts:
Part I asks for the tag that embeds a video with a fixed size and playback buttons. Part II asks for one attribute name of the font tag.

Step 2: Choose the tag and attributes for part I:
HTML5 gives the <video> tag to play a video without any plugin. We need four things. The src attribute holds the file name. The width attribute is 400 and the height attribute is 300, both in pixels. The controls attribute adds the play, pause, volume and seek bar.

Step 3: Write the code for part I:
<video src="documentary.mp4" width="400" height="300" controls></video>
The tag is closed with </video>. The attribute controls needs no value.

Step 4: Answer part II:
The <font> tag has three attributes. size sets the size, color sets the colour, and face sets the font family. Font family means the typeface, such as Arial or Verdana. So the attribute for font family is face. For example, <font face="Arial">Hello</font> shows Hello in Arial.

Final Answer:
Part I uses the video tag with src, width, height and controls. Part II is the face attribute. \[ \boxed{\text{I: video tag with src, width 400, height 300, controls; II: face}} \]
Was this answer helpful?
0
0

Top CBSE X Questions

View More Questions