Home >Web Front-end >HTML Tutorial >How to use html embed tag

How to use html embed tag

silencement
silencementOriginal
2019-05-27 09:47:194224browse

How to use html embed tag

Detailed explanation of the usage and attributes of HTML embed tag

1. Basic syntax

The code is as follows:

embed src=url

Description: embed can be used to insert various multimedia, the format can be Midi, Wav, AIFF, AU, MP3, etc., Netscape and new versions of IE support it. The url is the audio or video file and its path, which can be a relative path or an absolute path.

Example, the code is as follows

<embed src="your.mid">

2. Attribute settings

1. Automatic playback:

Syntax: autostart=true, false

Description: This attribute specifies whether the audio or video file will automatically play after downloading.

true: The music file will automatically play after downloading;

false: The music file will not automatically play after downloading.

Example, the code is as follows

<embed src="your.mid" autostart=true>
 <embed src="your.mid" autostart=false>

2. Loop playback:

Syntax: loop=positive integer, true, false

Description: This attribute specifies audio Or whether the video file loops and the number of loops.

When the attribute value is a positive integer value, the number of loops of the audio or video file is the same as the positive integer value;

When the attribute value is true, the audio or video file loops;

When the attribute value is false, the audio or video file does not loop.

Example, the code is as follows

<embed src="your.mid" autostart=true loop=2>
 <embed src="your.mid" autostart=true loop=true>
 <embed src="your.mid" autostart=true loop=false>

3. Panel display:

Syntax: hidden=ture, no

Description: This attribute specifies whether the control panel is displayed , the default value is no.

ture: hide the panel;

no: show the panel.

Example, the code is as follows

<embed src="your.mid" hidden=ture>
 <embed src="your.mid" hidden=no>

The above is the detailed content of How to use html embed tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use html div tagNext article:How to use html div tag

Related articles

See more