The approach to append video to your webpage is to include the HTML tag called <embed>. This tag source the browser itself to include controls for the multimedia provided browser supports with media type.

Following the media type used in embedded code:

  • .swf files – the file types formed by Flash program.
  • .wmv files – Microsoft’s Window’s Media Video file types.
  • .mov files – Apple’s Quick Time Movie format.
  • .mpeg files – movie files formed by the Moving Pictures Expert Group.

Example:-

<!DOCTYPE html>

<html>

<head>

<title>HTML embed Tag</title>

</head>

<body>

<embed src=”myembded.mid” width=”100%” height=”100″ ></embed>

</body>

</html>

<embed> Tag Attributes

The list of attributes of <embed> tag.

Attribute Description
align It could be used for set to either center, left or right.
autostart This is boolean attribute and used for automatic start of media. You could set it either true or false.
loop If you want to played continuously (put loop to true), a certain number of times
width Width in pixels
height Height in pixels
name A name used to reference the aim.
src URL of the aim to be embedded.

Background Audio

HTML <bgsound> tag to take part in a soundtrack in the background of webpage. This tag is supported by Internet Explorer. It downloads and plays an audio file when the host document is first downloaded by the user and displayed. This tag is having two attributes loop and src. Both these attributes have equal meaning as explained above.

Example:-

<!DOCTYPE html>

<html>

<head>

<title>HTML embedded Tag</title>

</head>

<body>

<bgsound src=”myembed.mid”></bgsound>

</body>

</html>

HTML Object tag

HTML 4 establishes the <object> tag, which suggests generic object inclusion. The <object> tag permits HTML to specify everything required by an object for its presentation by a user agent.

Example: –

<object data=”objectt.htm” type=”text/html” width=”500″ height=”500″> Result: <a href=”objecttest.htm”>objecttest.htm</a></object>

Related Article

Latest Article

HTML

HTML Character Sets

ASCII was the first character set. It describes 127 different alphanumeric characters that can be used on the internet.

HTML

HTML Event Attributes

The following event attributes could be added to all HTML elements where applicable. The event attributes are used for specifying the characteristics of an element

HTML

HTML Tags

HTML Tag are used for making front end part which is visible for visitors. HTML Tag are ,