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:

Air Resistance and Terminal Velocity

View this item in the topic:

Mechanics

and many more articles in the subject:

Subject of the Week

Computing

Information Technology, Computer Science, website design, database management, robotics, new technology, internet and much more. JavaScript, PHP, HTML, CSS, Python, ... Have fun while learning to make your own websites with ScienceLibrary.info.

Computer Science

Great Scientists

Gregor Johann Mendel

1822 - 1884

Gregor Mendel is known as 'the Father of Modern Genetics' published his work, Versuche ├╝ber Pflanzenhybriden [Experiments on Plant Hybridization], on hereditary traits of peas, in 1866. The insight of his work became apparent later when the science of genetics confirmed his findings.

Gregor Mendel
Vitruvian Boy

Quote of the day...

If I were to awaken after having slept for a thousand years, my first question would be: Has the Riemann hypothesis been proven?

ZumGuy Internet Promotions

ZumGuy Publications and Promotions