Web Design

(Nancy Kaufman) #1

236


Add Video with HTML5 ...........................................


4 Type <source src=”?”
type=”video/
ogg” codecs=”theora,
vorbis” >, replacing?
with the path to the video.


5 Press.


1 In your editor, open an
existing Web page or create
a new one.


2 In the body of the document,
type


3 Press.


Add Video with HTML5


A


lthough the next version of HTML is not due to be released as a full standard for at least a
decade, some browsers are already adopting parts of it. In particular, support for HTML5’s ability

to play video directly in the browser, without the need for a plug-in such as Flash, is becoming more


popular. Unfortunately, browsers currently support a few different implementations of video, so you


must encode your video in at least two different formats for it to work. Once the video is encoded,


you can simply use the


1


2


4

Free download pdf