HTML and CSS Reference
In-Depth Information
Figure 6-3. Controlling video width and height in the embed
Example 6-3. Basic HTML5 video in three sizes
<!doctype html>
<html
<html lang=
"en"
>
<head>
<head>
<meta
<meta charset=
"UTF-8"
>
<title>
<title>
CH6EX3: Basic HTML5 Video: 3 Sizes
</title>
</title>
</head>
</head>
<body>
<body>
<div>
<div>
<video
<video autoplay loop controls width=
"640"
height=
"480"
id=
"thevideo"
>
<source
<source src=
"muirbeach.webm"
type=
'video/webm; codecs="vp8, vorbis"'
>