Which HTML5 attribute identifies the location and file name of a video?

Prepare for the uCertify CIW Advanced HTML5 and CSS3 Specialist Exam. Dive into essential topics with flashcards and multiple-choice questions. Enhance your understanding with hints and explanations for each question. Pass your exam confidently!

Multiple Choice

Which HTML5 attribute identifies the location and file name of a video?

Explanation:
The attribute that identifies the location and file name of the video is the src attribute on the video element. It tells the browser where to load the media from, using a URL like "videos/sample.mp4." You can place the source directly on the video tag or use a nested source element for flexibility. For example: <video src="videos/sample.mp4" controls></video>. Other attributes serve different purposes: href is used for links, poster shows an image before playback, and controls toggles the browser’s built-in playback UI.

The attribute that identifies the location and file name of the video is the src attribute on the video element. It tells the browser where to load the media from, using a URL like "videos/sample.mp4." You can place the source directly on the video tag or use a nested source element for flexibility. For example: . Other attributes serve different purposes: href is used for links, poster shows an image before playback, and controls toggles the browser’s built-in playback UI.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy