How is the loop property of the HTML5 embed tag used? Summary of properties of embed tags!

Source: Internet
Author: User
This article describes how to use the Loop property of the HTML5 embed tag, and a summary of the properties of the embed tag, so let's take a look at this article.

Let us first understand the use of the Loop property of the HTML5 embed tag:

such as this:

<embed src= "Your.mid" Autostart=true loop=100>

Loop, loop 100 times like an infinite loop. This is the way of infinite loops.

Syntax: loop= positive integer, True, False

Description: This property specifies whether audio or video files are looped and cycled.

    • When the value of the property is a positive integer value, the number of cycles of the audio or video file is the same as the full value;

    • When the property value is true, the audio or video file loops;

    • When the property 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>

The use of the other six properties of the HTML5 embed tag is described:

1. Auto Play:

Syntax: Autostart=true, False

Description: This property specifies whether an audio or video file will play automatically after it has been downloaded.

    • True: Music files are automatically played after downloading;

    • False: The music file does not play automatically after the download is complete.

Example: The code looks like this:

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

2. Panel Display:

Syntax: Hidden=ture, no

Description: This property specifies whether the control panel is displayed and the default value is No.

    • Ture: Hide panel;

    • No: Display panel.

Example: The code looks like this:

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

3. Volume Size:

Syntax: An integer between volume=0-100

Description: This property specifies the volume size of an audio or video file. Undefined uses the settings of the system itself.

Example: The code looks like this:

<embed src= "Your.mid" Volume= "ten" >

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: General 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 button is displayed.

Example: The code looks like this:

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

5. Foreground and background colors:

Syntax: Palette=color|color

Description: This property represents the foreground and background color of an embedded audio or video file, the first value is a front color, the second value is the background color, and the middle is used | Separated. The color can be an RGB color (RRGGBB) or a color name, or it can be transparent (transparent).

Example: The code looks like this:

<embed src= "Your.mid" palette= "Red|black" >

6. Alignment:

Syntax: align=top, bottom, center, baseline, left, right, Texttop, middle, absmiddle, absbottom

Description: This property specifies the alignment of the control Panel and the objects in the current row.

    • Center: Control Panel Center;

    • Left: The control Panel is right;

    • Right: The control Panel is on the left;

    • Top: The topmost part of the control Panel is aligned with the top of the highest object in the current line;

    • Bottom: The bottom of the control Panel aligns 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 to the top of the highest text in the current line;

    • Middle: The middle of the control Panel aligns with the baseline of the current line;

    • Absmiddle: The middle of the control Panel aligns 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 looks like this:

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

OK, this article about the HTML5 embed tag loop property and other properties of the introduction, to the end of this (want to learn more about the topic.alibabacloud.com, is a lot of programming courses of the site, you want to learn in the inside), the problem can be asked below.

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.