SHARE
Facebook X Pinterest WhatsApp

How to Embed Videos in Your Web Pages Using HTML 5

May 12, 2010

While the HTML5 versus Flash debate still rages, many web developers are already beginning to use HTML5 to embed videos in their web pages. This article will show you how to do just that, and take you on a tour in the world of HTML5 video.


With support for HTML5 video coming from sites including YouTube and Wikipedia, and even Microsoft announcing that its Internet Explorer 9 will include support for HTML5 video, more developers are abandoning Flash for “native” video.


The first issue to work out is which browsers actually support HTML5 video. As it stands, Safari 4, Chrome 3+, and Opera all support HTML5, so you’ll be able to use those browsers to test out the videos on your site. Next you will need to decide on a video codec, but your choices are currently limited to H.264 and Theora. The main reason for using HTML5 over Flash at this point: iPhone and Android don’t support Flash, but they do support HTML5.


Now that you know the details behind HTML5 video, it’s time to delve into the code itself in this tutorial from All About Jazz Publicity.

Recommended for you...

Web 3.0 and the Future Of Web Development
Rob Gravelle
Jun 23, 2022
CodeGuru and VBForums Developer Forums and Community
James Payne
Apr 7, 2022
Understanding CSS Template Layout
Vipul Patel
Mar 29, 2022
Criminals Pay More for Code Signing Certificates Than for Guns or Passports
HTML Goodies Logo

The original home of HTML tutorials. HTMLGoodies is a website dedicated to publishing tutorials that cover every aspect of being a web developer. We cover programming and web development tutorials on languages and technologies such as HTML, JavaScript, and CSS. In addition, our articles cover web frameworks like Angular and React.JS, as well as popular Content Management Systems (CMS) that include WordPress, Drupal, and Joomla. Website development platforms like Shopify, Squarespace, and Wix are also featured. Topics related to solid web design and Internet Marketing also find a home on HTMLGoodies, as we discuss UX/UI Design, Search Engine Optimization (SEO), and web dev best practices.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.