Question:easy

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

Solution and Explanation

Step 1: Split the question:
There are two small tasks. The first is a video tag with four settings. The second is a single attribute name. We solve them one by one.

Step 2: Write part I with a source tag:
A video can also be given as a child tag. The outer <video> tag carries the size and the controls. The inner <source> tag names the file and its type. Any text between the tags shows only if the browser cannot play video.
<video width="400" height="300" controls>
  <source src="documentary.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>


Step 3: Check each requirement:
File named documentary.mp4: given in src of <source>.
Width 400 pixels: width="400".
Height 300 pixels: height="300".
Playback controls: the controls attribute is present.
All four needs are met. The short form with src placed directly in <video> is equally correct.

Step 4: Find the attribute for part II by elimination:
The font tag can change three things. size changes how big the text is. color changes the text colour. face changes the typeface. Font family is the typeface, so the answer is face.

Final Answer:
The video is embedded with the video tag, 400 by 300 pixels, with controls. The font family attribute is face. \[ \boxed{\text{I: video tag, 400 by 300, controls; II: face}} \]
Was this answer helpful?
0