Syntax and attribute settings of the Embed label in html

Source: Internet
Author: User

The help house (www.bkjia.com) Tutorial recently recognized the embed label due to work requirements. I used to add a flash with him. I never thought about how to use the embed label? This tag is really useful for some video files. Friends who first know the embed label must be vague about it and do not know what embed is.

To put it simply, embed is a simple syntax that can be used to play audio and video documents. It is usually used to play the formats supported by Windows Media Player, but it can also be used to play some other formats, but pay attention to more details. Embed can be used to insert various multimedia files, including Midi, Wav, AIFF, AU, MP3, MPG, and AVI.

Let's take a look at the syntax of the embed tag:

(1) Basic Syntax:
Embed src = url
The url is an audio or video file and its path, which can be a relative or absolute path.
Example:
(2) attribute settings:
1. automatic playback:
Syntax: autostart = true and false
Note: This attribute specifies whether audio or video files are automatically played after being downloaded.
True: music files are automatically played after being downloaded;
False: The music file is not automatically played after it is downloaded.
Example:
2. Loop playback:
Syntax: loop = positive integer, true, false
Note: This attribute specifies whether audio or video files are cyclically or cyclically stored.
When the property value is a positive integer, the number of cycles of the audio or video file is the same as that of the positive integer;
When the attribute value is true, audio or video file loops;
When the attribute value is false, audio or video files do not circulate.
Example:
3. panel display:
Syntax: hidden = true, no
Note: This attribute specifies whether the control panel is displayed. The default value is no.
Ture: Hide the panel;
No: Display Panel.
Example:
4. Start Time:
Syntax: starttime = mm: ss (minute: second)
Note: This attribute specifies the time when the audio or video file starts to play. If it is not defined, it is played from the beginning of the file.
Example:
5. volume size:
Syntax: an integer between volume = 0 and
Note: This attribute specifies the volume of audio or video files. If not defined, the system settings are used.
Example:
6. Container properties:
Syntax: height = # width = #
Description: The value is a positive integer or percentage, in pixels. This attribute 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 unit:
Syntax: units = pixels, en
Description: This attribute specifies the unit of height and width as pixels or en.
Example:
8. Appearance settings:
Syntax: controls = console, smallconsole, playbutton, pausebutton, stopbutton,
Volumelever Description: This Property specifies the appearance of the control panel. The default value is console.
Console: normal panel;
Smallconsole: small panel;
Playbutton: only the playback button is displayed;
Pausebutton: only the pause button is displayed;
Stopbutton: only the stop button is displayed;
Volumelever: only the volume adjustment button is displayed.
Example:
9. Object Name:
Syntax: name = #
Note: # Is the object name. This attribute is used to name an object so that other objects can use it.
Example:
10. Description:
Syntax: title = #
Note: # indicates the description. This attribute specifies the description of an audio or video file.
Example:
11. foreground and background colors:
Syntax: palette = color | color
Description: This attribute indicates the foreground and background color of the embedded audio or video file. The first value is the foreground color and the second value is the background color.
Color, separated by | in the middle. Color can be an RGB color (RRGGBB), a color name, or a transparent
(Transparent ). Example:
12. Alignment:
Syntax: align = top, bottom, center, baseline, left, right, texttop, and middle. The basic syntax of the embed label is listed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.