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

Universe

'Universe' on ScienceLibrary.info covers astronomy, cosmology, and space exploration. Learn Science with ScienceLibrary.info.

Science

Great Scientists

Charles Goodyear

1800 - 1860

Charles Goodyear is a model of the determined inventor, who struggled to find the secret to a better rubber, despite years of financial hardship and frustration.

Goodyear
Rewewable Media

Quote of the day...

Mathematics knows no races or geographic boundaries; for mathematics, the cultural world is one world.

ZumGuy Internet Promotions

Transalpine traduzioni