Science Library - free educational site

Audio-Visual and Scripts

Video

HTML5 provides a video element for embedding videos on a webpage:

<video width="400" height="300" controls>

<source src="video_demo.mp4" type="video/mp4">

<source src="video_demo.ogg" type="video/ogg">

Your browser version is not video tag compliant.

</video>

controls and autoplay add those functions. Any text within the video tags only displays if a video could not be found or played.

Supported video formats: MP4 (all browsers) video/mp4. WebM (video/webm) and Ogg (video/ogg) are not supported by Explorer or Safari.

If browsers do not support HTML5, there are alternatives for displaying a video as an object:

<object data="video_demo.mp4" width="240" height="330" title="Example video" >

</object>

or embedding the video:

<embed src="video_demo.mp4" height="330" width="240" title="Example video" autostart="autostart" >

Audio

HTML5 provides an audio element for embedding audio files on a webpage:

<audio controls>

<source src="audio_demo.mp3" type="audio/ogg">

<source src="audio_demo.ogg" type="audio/mpeg">

Your browser does not support the audio element.

</audio>

Currently (Jan 2015), only mp3 is supported by all browsers.

Content © Renewable-Media.com. All rights reserved. Created : November 6, 2014 Last updated :February 27, 2016

Latest Item on Science Library:

The most recent article is:

Trigonometry

View this item in the topic:

Vectors and Trigonometry

and many more articles in the subject:

Subject of the Week

Physics

Physics is the science of the very small and the very large. Learn about Isaac Newton, who gave us the laws of motion and optics, and Albert Einstein, who explained the relativity of all things, as well as catch up on all the latest news about Physics, on ScienceLibrary.info.

Gravity lens

Great Scientists

John Sulston

1942 -

John Sulston, born 1942, is an English biologist and geneticist, most well-known for the first animal genome sequencing (nematode), and winning the race to sequence the human genome, ensuring it would remain a public property legacy.

John Sulston
SaraOrdine

Quote of the day...

If I agreed with you, we'd both be wrong.

ZumGuy Internet Promotions

Renewable energy media services