HTML 5 and CSS 3 – Illustrated 2nd Ed. Instructor’s Manual: Unit L Page 6 of 10
• Point out that all browsers can play MPEG-4 videos encoded with the H.264 codec, but some
browsers are optimized to play other formats more efficiently. Remind students that some users still
access the web with older browsers that support the video element but not the H.264 codec.
Explain that these factors often makes it necessary to reference multiple video files specifying the
same video in different encoding and container formats.
• Introduce the source element, explaining that multiple source elements can be nested within
the video element to specify the location and coding of multiple files.
TEACHER TIP
Point out that the source element is used only to specify multiple media resources, and does not
represent anything on its own.
FIGURES: L-7, L-8
BOXES:
1. Quick Tip: XHTML requires a closing slash in a one-sided tag, so to add a source element in an
XHTML document, you use the code <source />.
2. Encoding video in web-ready formats
If you’re developing web pages on your own, you will probably need to convert a single video
file into multiple formats. Many tools are available to handle this conversion. While some software that
simplifies and automates the process is available for purchase, some powerful tools are available free or
on a donation basis as well. These free and low-cost alternatives are often just as powerful as their more
expensive counterparts, but they may require more configuration and may not be as well documented.
If you’re working on a well-funded project with a tight deadline, purchasing software may make the
most sense; however, if you’re working within a low budget, it can be well worth your time to
CLASSROOM ACTIVITIES
1. Critical thinking: When incorporating multiple source elements within a video element, how
should you decide on the order of the source elements?
2. Quick Quiz: