HTML5 & lt; embed & gt; isn't the tag a chicken?

Source: Internet
Author: User

Definition and usage
<Embed> labels define embedded content, such as plug-ins.

Instance
<Embed src = "helloworld.swf"/> Differences between HTML 4.01 and HTML 5
<Embed> A tag is a new tag in HTML 5.

Attribute
New: new attribute in HTML5.

Attribute value description
Height pixels sets the height of the embedded content.
The url of the src URL embedded in the content.
Type defines the type of embedded content.
Width pixels: Set the width of the embedded content.

It is a new tag in HTML 5. In fact, it is no stranger in HTML 4.


Why is it a chicken rib?


This is because the value of the src attribute must specify the actual file extension. For example, if you want to use it to play mp3 files,


The file extension in the url must be mp3. If you want to use a dynamic web page


For example, "getMp3.php? Id = 12321 ", it cannot be played at all,


Even if you specify the type attribute "audio/mpeg3", it cannot recognize it as an mp3 file.

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.