These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:04 pm Advanced search

Video tag in html5

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

Video tag in html5

Postby vantheo » Fri Oct 16, 2009 8:46 am


Can I use the video tag in html or just need html5 to use the tag <video>. What is the proper code to experiment it on my website.
Posts: 1
Joined: Fri Oct 16, 2009 8:42 am

Postby zcorpan » Fri Oct 16, 2009 11:04 am

Something along the lines of:

Code: Select all
<video src=video.ogg controls></video>

If you want to support both Firefox and Safari you have to either convince Safari users to install XiphQT or encode your video twice in different formats:

Code: Select all
<video controls>
<source src=video.ogg type=video/ogg>
<source src=video.mp4>

You can put an <embed> element inside the video element as fallback for browsers that don't support <video>.

Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest