search
HomeWeb Front-endH5 TutorialHow to use the loop attribute of html5 embed tag? Summary of attributes of embed tag!

This article introduces the details of how to use the loop attribute of the html5 embed tag, as well as a summary of the use of attributes of the embed tag. Next, let us read this article together

Let’s first understand the usage of the loop attribute of the HTML5 embed tag:

For example:

<embed src="your.mid" autostart=true loop=100>

Loop playback, looping 100 times is almost like an infinite loop. This is Infinite loop method

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=2>
<embed src="your.mid" autostart=true loop=true>
<embed src="your.mid" autostart=true loop=false>

html5 Introduction to the use of the other six attributes of the embed tag:

1.Autoplay:

Syntax: autostart=true, false

Description: This attribute specifies whether the audio or video file will automatically play after downloading.

  • true: The music file will play automatically after downloading;

  • #false: The music file will not play automatically after downloading.

Example: The code is as follows:

<embed src="your.mid" autostart=true>
<embed src="your.mid" autostart=false>

2. 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: The code is as follows:

<embed src="your.mid" hidden=ture>
<embed src="your.mid" hidden=no>

3. Volume size:

Syntax: volume=0-100 Integer

Description: This attribute specifies the volume of the audio or video file. If not defined, the system's own settings will be used.

Example: The code is as follows:

<embed src="your.mid" volume="10">

4.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: 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: The code is as follows:

<embed src="your.mid" controls=smallconsole>
<embed src="your.mid" controls=volumelever>

5. Foreground color and background color:

Syntax: palette=color| color

Description: This attribute represents the foreground color and background color 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: The code is as follows:

<embed src="your.mid" palette="red|black">

6. 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 line.

  • 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 control panel 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 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: The code is as follows:

<embed src="your.mid" align=top>
<embed src="your.mid" align=center>

Okay, this article on the use of the loop attribute and other attributes of the HTML5 embed tag ends here (think To learn more, come to the PHP Chinese website, which is a website with many programming courses. Everything you want to learn is in it). If you have any questions, you can ask them below.

【Editor's Recommendation】

How to remove the label from the ol tag in html? Summary of how to use the

    tag

How to remove the dot from the ul tag in HTML? Style example analysis of HTML unordered list

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

Statement
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
HTML超文本标记语言--超在那里?(文档分析)HTML超文本标记语言--超在那里?(文档分析)Aug 02, 2022 pm 06:04 PM

本篇文章带大家了解一下HTML(超文本标记语言),介绍一下HTML的本质,HTML文档的结构、HTML文档的基本标签和图像标签、列表、表格标签、媒体元素、表单,希望对大家有所帮助!

embed是什么函数embed是什么函数Dec 14, 2020 am 09:42 AM

embed是Excel中用来插入对象的函数,其语法是“{ EMBED ClassName [Switches] }”,参数ClassName表示容器应用程序名。

web前端笔试题库之HTML篇web前端笔试题库之HTML篇Apr 21, 2022 am 11:56 AM

总结了一些web前端面试(笔试)题分享给大家,本篇文章就先给大家分享HTML部分的笔试题(附答案),大家可以自己做做,看看能答对几个!

HTML5中画布标签是什么HTML5中画布标签是什么May 18, 2022 pm 04:55 PM

HTML5中画布标签是“<canvas>”。canvas标签用于图形的绘制,它只是一个矩形的图形容器,绘制图形必须通过脚本(通常是JavaScript)来完成;开发者可利用多种js方法来在canvas中绘制路径、盒、圆、字符以及添加图像等。

总结HTML中a标签的使用方法及跳转方式总结HTML中a标签的使用方法及跳转方式Aug 05, 2022 am 09:18 AM

本文给大家总结介绍a标签使用方法和跳转方式,希望对大家有所帮助!

在 Microsoft Loop 协作平台中,如何利用 AI Copilot 进行协作?在 Microsoft Loop 协作平台中,如何利用 AI Copilot 进行协作?Nov 18, 2023 pm 01:33 PM

MicrosoftLoop通过其新功能Copilot进行了增强,是一种现代工具,旨在改善团队协作的方式。它由三个主要部分组成:组件、页面和工作区。组件是列表或笔记等内容,无论您在何处使用它们,无论是在电子邮件、文档还是聊天中,它们都会保持更新。这意味着您始终使用最新信息。循环页面就像数字白板,您可以在其中将所有组件、任务和数据放在一起。这些页面可以随着项目的增长而增长,从而可以轻松地将所有内容保存在一个地方。Loop中的工作区是共享区域,您的团队可以在其中查看和组织对项目重要的所有内容,帮助每个

html5废弃了哪个列表标签html5废弃了哪个列表标签Jun 01, 2022 pm 06:32 PM

html5废弃了dir列表标签。dir标签被用来定义目录列表,一般和li标签配合使用,在dir标签对中通过li标签来设置列表项,语法“<dir><li>列表项值</li>...</dir>”。HTML5已经不支持dir,可使用ul标签取代。

如何下载和使用微软循环如何下载和使用微软循环May 08, 2023 pm 01:16 PM

微软已经准备好允许用户访问Loop项目的第一个预览版。现在,让我们学习从哪里获取它,如何安装它以及如何充分利用它。想要了解如何跨Office应用使用此软件并管理任务?您来对地方了。什么是微软循环?我们应该怎么说呢?您可以将Loop与项目板进行比较。在这里,您可以看到所有Loop组件和Loop页面的列表,以及当前正在处理它们的人员。可以将其视为现代文件资源管理器,其中所有内容都是实时和协作的。循环页面是单独的画布,人们可以在其中共享和协作处理循环组件。此外,Loop组件会不断更新和编辑,无

See all articles

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)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor