The embed element is used to insert a music, video or other plug-ins into your document. Embed element is a non-standard but well-supported element that’s used to embed multimedia content, including media types that mightn’t usually be natively supported by the browser. In our time now we use many different web browsers, so if you want to make sure that its going to work well use this embed element.
Listed below are the most common attributes you can use for the embed element:
- autostart - sets a value if the multimedia should start start immediately after the document has been loaded.
- class - provides the class or classes of the heading. This attribute is used to identify the name of the style class or classes to be used for rendering.
- height - sets the height in pixels (px) of the element.
- hidden - sets a value if the element should be visible or not in the web browser.
- name - provides a name for the element.
- src - provide a Uniform Resource Locator (URL) of the multimedia.
- style - provides a cascading style sheet (CSS) properties to the element.
- width - sets the width in pixels (px) of the element.
Here's an example on how to use the embed <embed> element:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<mate name="keywords" content="blog, web development" />
<title>the EMBED element</title>
</head>
<body>
<h1>
the EMBED element
</h1>
<embed src="oc.mpg" width="320" height="260"></embed>
</body>
</html>
0 comments:
Post a Comment