Home Web Front-end HTML Tutorial Detailed explanation of the usage and attributes of HTML embed tag_HTML/Xhtml_Web page production

Detailed explanation of the usage and attributes of HTML embed tag_HTML/Xhtml_Web page production

May 16, 2016 pm 04:38 PM
embed html

1. Basic syntax


Copy code
The code is as follows:

embed src=url

Note: embed can be used to insert various multimedia. The formats 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:

Copy the code
The code is as follows:

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:

Copy code
The code is as follows:




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:

Copy the code
The code is as follows:


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:

Copy the code
The code is as follows:

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:

Copy the code
The code is as follows:

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:

Copy the code
The code is as follows:


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:

Copy the code
The code is as follows:

7. Container units:

Syntax: units=pixels, en
Description: This attribute specifies the unit of height and width as pixels or en.
Example:

Copy the code
The code is as follows:



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: a normal panel;
smallconsole: a 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:

Copy the code
The code is as follows:



9. Object name:

Syntax: name=#
Explanation: # is the name of the object. This attribute gives the object a name so that other objects can use it.
Example:

Copy the code
The code is as follows:

10. Description:

Grammar: title=#
Description: # is the description text. This attribute specifies the description text of the audio or video file.
Example:

Copy the code
The code is as follows:

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:

Copy the code
The code is as follows:


12. Alignment:

Syntax: align=top, bottom, center, baseline, left, right, texttop, middle, absmiddle, absbottom
Description: This attribute specifies the alignment of objects in the control panel and the current row.
center: the control panel is in the center;
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 tallest 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:

Copy the code
The code is as follows:

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles