Using the embed Element
Description
The object and embed elements both extend the capabilities of browsers by adding support for plugins that browser didn't support directly.
The embed
Element has Local Attributes:src, type, height, width
.
Example
The following code shows the embed element in use.
<!DOCTYPE HTML>
<html>
<body>
<embed src="http://www.youtube.com/v/qzA60hHca9s"
type="application/x-shockwave-flash"
width="560"
height="349"
allowfullscreen="true" />
</body><!-- w w w .j a v a2s . co m-->
</html>
Note
The src attribute specifies the location of the content.
The type attribute specifies the MIME type of the content.
The width and height attributes determine the size of the embedded content.
Any other attributes are parameters for the plugin or the content.
allowfullscreen
allows the YouTube video player to play video in full-screen.