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

How to use html embed tag

silencement
Release: 2019-05-27 10:23:06
Original
4141 people have browsed it

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">
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template