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 © Andrew Bone. 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

Resources

Science resources on ScienceLibrary.info. Games, puzzles, enigmas, internet resources, science fiction and fact, the weird and the wonderful things about the natural world. Have fun while learning Science with ScienceLibrary.info.

Science

Great Scientists

Wallace Carothers

1896 - 1937

Wallace Carothers was an American chemist and pioneer in pure research into large-molecular weight polymers.

Wallace Carothers, 1896 - 1937, inventor of nylon
Umwelt.Science

Quote of the day...

This is the most dramatic story the human family has ever faced.

ZumGuy Internet Promotions

ZumGuy Publications and Promotions