This is the homework for the “Multimedia” lesson of the HTML class. It includes a short quiz (answers below) and a project you can do to practice what you've learned in this lesson.
- What are three things you should keep in mind before adding multimedia to your website?
- What element do you use to add sound to web pages in HTML5?
- What does the attribute
controls="false"do and why should you avoid it?
- What are three types of sites where it's appropriate to add sound?
- What element other than
VIDEOdo you use to embed multiple versions of a video onto your site?
- What video format should you save your videos in for Firefox, Safari, and Internet Explorer 8?
Record a sound file or find a public domain source on the web and add it to your web page using HTML5. Be sure to test it in multiple browsers and include at least two different source files so that multiple browsers can view it.
If you are sharing your work on the forum, include the URL of your web page with the sound file and indicate which file types your page includes.
Answers to the Multimedia Quiz
- Before you add multimedia you should remember that people don't like sound and video that starts automatically, you should support multiple operating systems and browsers, your multimedia should be accessible, it takes up a lot of space and bandwidth, and there are other services you can use to host multimedia files, especially video.
- You add sound to an HTML5 web page with the
controls="false"attribute turns off any visible controls for the multimedia element. You should avoid this attribute because sound and video that cannot be turned off is very annoying to most customers, and most will leave your site if they can't control it.
- There are several types of sites where it is appropriate to add sound or video to, including musician and video artist sites, game websites, forms and web 2.0/Ajax forms, and web pages for kids.
- To include multiple sources of your video or audio file you use the
- You should save videos in Ogg for Firefox, MP4 or H.264 for Safari, and FLV for Internet Explorer 8.