13.02.2018 Views

html_tutorial pdf

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

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

22. HTML – EMBED MULTIMEDIA<br />

HTML<br />

Sometimes you need to add music or video into your web page. The easiest way to add<br />

video or sound to your web site is to include the special HTML tag called . This<br />

tag causes the browser itself to include controls for the multimedia automatically provided<br />

browser supports tag and given media type.<br />

You can also include a tag for the browsers which don't recognize the<br />

tag. You could, for example, use to display a movie of your choice,<br />

and to display a single JPG image if browser does not support <br />

tag.<br />

Example<br />

Here is a simple example to play an embedded midi file:<br />

<br />

<br />

<br />

HTML embed Tag<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

This will produce the following result:<br />

You can put any media file in src attribute. You can try it yourself by giving various types<br />

of files.<br />

115

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

Saved successfully!

Ooh no, something went wrong!