HTML 5 video tag
Category: CSS | 5,206 views | 1 Comment |
he <video> tag is new in HTML 5
Tips and Notes
Tip: You can write text between the start and end tags, to show older browser that they do not support this tag.
Example
| Source | Output |
|---|---|
| <video src=”http://www.youtube.com/video.wmv”> your browser does not support the video tag </video> |
your browser does not support the video tag |
Optional Attributes
| Attribute | Value | Description |
|---|---|---|
| autoplay | true | false | If true, then the audio will start playing as soon as it is ready |
| controls | true | false | If true, the user is shown some controls, such as a play button. |
| end | numeric value | Defines where in the audio stream the player should stop playing. As default, the audio is played to the end. |
| height | pixels | Sets the height of the video player |
| loopend | numeric value | Defines where in the audio stream the loop should stop, before jumping to the start of the loop. Default is the end attribute’s values |
| loopstart | numeric value | Defines where in the audio stream the loop should start. Default is the start attribute’s values |
| playcount | numeric value | Defines how many times the audio clip should be played. Default is 1. |
| poster | url | The URL of an image to show before the video is ready |
| src | url | The URL of the audio to play |
| start | numeric value | Defines where in the audio stream the player should start playing. As default, the audio starts playing at the beginning. |
| width | pixels | Sets the width of the video player |
- No Related Post






