Home Web Front-end HTML Tutorial How to use embed tag?

How to use embed tag?

Jun 24, 2017 pm 01:38 PM
Label Detailed explanation

HTML-embed tag detailed explanation Embed
(1), basic syntax:
embed src=url
Explanation: embed can be used to insert various multimedia, the format can be Midi, Wav, AIFF, AU, MP3, etc.,
      Netscape and New versions of IE are supported. 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 is in It will play automatically after downloading.
true: The music file will automatically play after downloading;
false: The music file will not automatically play after downloading.
Example:
< embed src="your.mid" autostart=false>

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 does not loop.
Example:
< embed src="your.mid" autostart=true loop=true>
< embed src="your.mid" autostart =true loop=false>

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: show the panel.
Example:
< embed src="your.mid" hidden=no>

4. Start time:
Syntax: starttime=mm:ss (points: 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 audio or video The volume size of the file. If not defined, the system's own settings will be used.
Example:

6. Container attributes:
Syntax: height=# width=#
Description: 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 unit:
Syntax: units=pixels, en
Description: This attribute specifies the unit of height and width as pixels or en .
Example:
< embed src="your.mid" units="en" height=200 width=200>

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 button is displayed.
Example:
< embed src="your.mid" controls=volumelever>

9. Object name:
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:
Grammar: title=#
Description: # is the description text. 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 embedded audio Or the foreground color and background color of the video file, the first value is the foreground color, the second value is the background color, separated by | in the middle. Color can be an RGB color (RRGGBB), a color name, or 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 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 line;
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 tallest text in the current line;
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:
< embed src="your.mid" align=center>

The above is the detailed content of How to use embed tag?. For more information, please follow other related articles on the PHP Chinese website!

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

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)

Detailed explanation of obtaining administrator rights in Win11 Detailed explanation of obtaining administrator rights in Win11 Mar 08, 2024 pm 03:06 PM

Windows operating system is one of the most popular operating systems in the world, and its new version Win11 has attracted much attention. In the Win11 system, obtaining administrator rights is an important operation. Administrator rights allow users to perform more operations and settings on the system. This article will introduce in detail how to obtain administrator permissions in Win11 system and how to effectively manage permissions. In the Win11 system, administrator rights are divided into two types: local administrator and domain administrator. A local administrator has full administrative rights to the local computer

Detailed explanation of division operation in Oracle SQL Detailed explanation of division operation in Oracle SQL Mar 10, 2024 am 09:51 AM

Detailed explanation of division operation in OracleSQL In OracleSQL, division operation is a common and important mathematical operation, used to calculate the result of dividing two numbers. Division is often used in database queries, so understanding the division operation and its usage in OracleSQL is one of the essential skills for database developers. This article will discuss the relevant knowledge of division operations in OracleSQL in detail and provide specific code examples for readers' reference. 1. Division operation in OracleSQL

How to search for text across all tabs in Chrome and Edge How to search for text across all tabs in Chrome and Edge Feb 19, 2024 am 11:30 AM

This tutorial shows you how to find specific text or phrases on all open tabs in Chrome or Edge on Windows. Is there a way to do a text search on all open tabs in Chrome? Yes, you can use a free external web extension in Chrome to perform text searches on all open tabs without having to switch tabs manually. Some extensions like TabSearch and Ctrl-FPlus can help you achieve this easily. How to search text across all tabs in Google Chrome? Ctrl-FPlus is a free extension that makes it easy for users to search for a specific word, phrase or text across all tabs of their browser window. This expansion

Detailed explanation of the role and usage of PHP modulo operator Detailed explanation of the role and usage of PHP modulo operator Mar 19, 2024 pm 04:33 PM

The modulo operator (%) in PHP is used to obtain the remainder of the division of two numbers. In this article, we will discuss the role and usage of the modulo operator in detail, and provide specific code examples to help readers better understand. 1. The role of the modulo operator In mathematics, when we divide an integer by another integer, we get a quotient and a remainder. For example, when we divide 10 by 3, the quotient is 3 and the remainder is 1. The modulo operator is used to obtain this remainder. 2. Usage of the modulo operator In PHP, use the % symbol to represent the modulus

Detailed explanation of the linux system call system() function Detailed explanation of the linux system call system() function Feb 22, 2024 pm 08:21 PM

Detailed explanation of Linux system call system() function System call is a very important part of the Linux operating system. It provides a way to interact with the system kernel. Among them, the system() function is one of the commonly used system call functions. This article will introduce the use of the system() function in detail and provide corresponding code examples. Basic Concepts of System Calls System calls are a way for user programs to interact with the operating system kernel. User programs request the operating system by calling system call functions

How to add tags on Douyin to attract traffic? Which tags on the platform are easiest to attract traffic to? How to add tags on Douyin to attract traffic? Which tags on the platform are easiest to attract traffic to? Mar 22, 2024 am 10:28 AM

As a popular short video social platform, Douyin has a huge user base. For Douyin creators, using tags to attract traffic is an effective way to increase the exposure of content and attract attention. So, how does Douyin use tags to attract traffic? This article will answer this question in detail for you and introduce related techniques. 1. How to add tags on Douyin to attract traffic? When posting a video, make sure to choose tags that are relevant to the content. These tags should cover the topic and keywords of your video to make it easier for users to find your video through tags. Leveraging popular hashtags is an effective way to increase your video’s exposure. Research current popular tags and trends and incorporate them into your video descriptions and tags. These popular tags usually have higher visibility and can attract the attention of more viewers. 3. Label

Detailed explanation of Linux curl command Detailed explanation of Linux curl command Feb 21, 2024 pm 10:33 PM

Detailed explanation of Linux's curl command Summary: curl is a powerful command line tool used for data communication with the server. This article will introduce the basic usage of the curl command and provide actual code examples to help readers better understand and apply the command. 1. What is curl? curl is a command line tool used to send and receive various network requests. It supports multiple protocols, such as HTTP, FTP, TELNET, etc., and provides rich functions, such as file upload, file download, data transmission, proxy

What is the clock behind the TikTok label? How to tag Douyin account? What is the clock behind the TikTok label? How to tag Douyin account? Mar 24, 2024 pm 03:46 PM

When browsing Douyin works, we often see a clock icon behind the tag. So, what exactly is this clock? This article will focus on the discussion of &quot;What is the clock behind the Douyin label&quot;, hoping to provide some useful reference for your use of Douyin. 1. What is the clock behind the Douyin label? Douyin will launch some hot topic challenges. When users participate, they will see a clock icon after the tag, which means that the work is participating in the topic challenge and displays the remaining time of the challenge. For some time-sensitive content, such as holidays, special events, etc., Douyin will attach a clock icon after the label to remind users of the validity period of the content. 3. Popular tags: When a tag becomes popular, Douyin will add a clock icon after the tag to indicate that the tag is

See all articles