04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

#3 Multimedia & Flash<br />

Browsers can play sounds and display videos or even interactive content like Flash applications in<br />

a Web page. <strong>HTML</strong> supports these types of media through an element called that is<br />

responsible for embedding external content into your Web page (your page will also need the help<br />

of a plugin viewer that knows how to display the content).<br />

We should mention the element and a close cousin – the element – have<br />

never fully recovered from the browser wars, so using them is somewhat more complicated than<br />

it should be. If you’d like to include multimedia in your own pages, we encourage you to visit the<br />

Web site of the author of your media type and make sure you use their recommended settings.<br />

While embedding multimedia is more complicated than it needs to be, don’t let that scare you off<br />

– given how much you know about <strong>HTML</strong>, it won’t take you long to get your sounds, animations,<br />

and movies into your pages.<br />

Here’s a simple example of embedding a Quicktime movie using an element:<br />

<br />

<br />

<br />

<br />

Sorry your browser does not support this movie type<br />

The legacy <br />

element is nested for<br />

support of old browsers.<br />

Embedding multimedia content into your pages can help to create a compelling and more<br />

immersive experience for your users, but specifying elements can be a tricky<br />

business, so make sure you consult the viewer manufacturer’s documentation on how to<br />

embed their viewers into your pages.<br />

You can nest object elements to<br />

provide a set of choices. If the<br />

browser can’t support the outer<br />

, it tries the .<br />

you are here 643

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!