O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a Single Video to Your Web Page

In order to add a video to your Web page in HTML5, you need to use the new video element. Doing so couldn’t be simpler Image.

Image Specifying a single WebM video with no controls

<body>     <video src="paddle-steamer.webm"></video></body>

To add a single video to your Web page

1. Obtain your video resource.

2. Type <video src="myVideo.ext"></video>, where myVideo.ext is the location, name, and extension of the video file.

And that’s it!

Tip

Both Apple and Microsoft have taken and twisted the idea of native multimedia. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required