Detailed explanation of html embed usage

高洛峰
Release: 2017-03-27 10:39:46
Original
1915 people have browsed it

html embed usage

Embed
  (1) Basic syntax:
embed src=url
Description: embed can be used to insert various multimedia, the format can be Midi, Wav , AIFF, AU, MP3, etc.,
are supported by Netscape and new versions of IE. The url is the audio or video file and its path, which can be a relative path or an absolute path.
Example:

(2) Attribute settings:
1. Autoplay:
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:
 

 2. Loop playback:
Syntax: loop=positive integer, true, false
Description: This attribute specifies whether the audio or video file is looped 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 loops Video files do not loop.
 Example:
  
  

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: display the panel.
 Example:
 

 4. Start time:
Syntax: starttime=mm:ss (minutes: seconds)
Description: This attribute specifies the time when the audio or video file starts playing. If not defined, play from the beginning of the file.
Example:

5. Volume size:
Syntax: volume=an integer between 0-100
 Description: This attribute specifies the volume of audio or video files. If not defined, the system's own settings will be used.
Example:

6. Container attributes:
Syntax: height=# width=
# Description: Take The value is a positive integer or percentage, and the unit is pixels. This property specifies the height and width of the control panel.
Height: The height of the control panel;
Width: The width of the control panel.
Example:

7. Container units:
Syntax: units=pixels, en
Description: This attribute Specify the height and width in pixels or en.
 Example:
  

8. Appearance settings:
Syntax: controls=console, smallconsole, playbutton, pausebutton, stopbutton,
volumelever Description: This attribute specifies the appearance of the control panel. The default value is console.
Console: Normal panel;
Smallconsole: Smaller panel;
Playbutton: Only the play button is displayed;
Pausebutton: Only the pause button is displayed;
Stopbutton: Only the stop button is displayed;
Volumelever: Only the volume adjustment buttons are displayed.
Example:
Syntax: name=

# Description: # is the name of the object. This attribute gives the object a name so that other objects can use it.

Example:

10. Description text:
Syntax: title=

# Description: # is the text for description. This attribute specifies the description text of the audio or video file.

Example:

 11. Foreground color and background color:
Syntax: palette=color|color
Description: This attribute represents the foreground color and background color of the embedded audio or video file. The first value is the foreground color. The second value is the background
color, separated by |. Color can be an RGB color (RRGGBB) or a color name, or it can be transparent
(transparent). Example:

12. Alignment:
Syntax: align=top, bottom, center, baseline, left, right , texttop, middle,
absmiddle, absbottom
Description: This attribute specifies the alignment of the control panel and the objects in the current line.
center: the control panel is centered;
left: the control panel is on the left;
right: the control panel is on the right;
top: the top of the control panel is aligned with the top of the highest object in the current row;
bottom: The bottom of the control panel is aligned with the baseline of the object in the current row;
baseline: The bottom of the control panel is aligned with the baseline of the text;
texttop: The top of the control panel is aligned with the top of the highest text in the current row Alignment;
middle: the middle of the control panel is aligned with the baseline of the current line;
absmiddle: the middle of the control panel is aligned with the middle of the current text or object;
absbottom: the bottom of the control panel is aligned with the bottom of the text .
 Example:
  

The above is the detailed content of Detailed explanation of html embed usage. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!