Category: HTML5

HTML5

HTML option selected Attribute

HTML option selected Attribute

The selected attribute is a boolean attribute. When present, it specifies that an option should be pre-selected when the page loads. The pre-selected option will be displayed first in the drop-down list. Basic Example...

Using Flash

Using Flash

You can use Flash to play a Flash format movie if the <video> element isn’t supported: Note that you shouldn’t include classid in the object tag in order to be compatible with browsers other...

Seeking through media

Seeking through media

Media elements provide support for moving the current playback position to specific points in the media’s content. This is done by setting the value of the currentTime property on the element; see HTMLMediaElement for...

Controlling media playback

Controlling media playback

Once you’ve embedded media into your HTML document using the new elements, you can programmatically control them from JavaScript code. For example, to start (or restart) playback, you can do this: The first line...

Overview

Overview

HTML5 introduces built-in media support via the and elements, offering the ability to easily embed media into HTML documents. Browser Support for Audio and Video Browser Codec and Container Support Chrome Ogg (Theora and...