


Detailed explanation of the usage and attributes of HTML embed tag_HTML/Xhtml_Web page production
1. Basic syntax
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:
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:
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.
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:
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 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 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:
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:
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:
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:

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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

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.

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

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

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

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

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

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