Home >Web Front-end >HTML Tutorial >Detailed explanation of the usage and attributes of HTML embed tag_HTML/Xhtml_Web page production
1. Basic syntax
Example:
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:
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.
true: hide the panel;
no: show 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:
Syntax: volume=an integer between 0-100
Description: This attribute specifies the volume of the audio or video file. If not defined, the system's own settings will be used.
Example:
7. Container units:
Syntax: units=pixels, en
Description: This attribute specifies the unit of height and width as pixels or en.
Example:
Example:
10. Description:
Grammar: title=#
Description: # is the description text. This attribute specifies the description text of the audio or video file.
Example:
11. Foreground and background colors:
Syntax: palette=color|color
Description: This attribute represents the foreground and background colors 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), a color name, or transparent.
Example:
Example: