Home >Web Front-end >H5 Tutorial >Detailed explanation of HTML5 embed tag definition and usage_html5 tutorial skills

Detailed explanation of HTML5 embed tag definition and usage_html5 tutorial skills

WBOY
WBOYOriginal
2016-05-16 15:47:491696browse

Definition and Usage The

tag defines embedded content, such as plugins.

Example



Differences between HTML 4.01 and HTML 5 The

tag is a new tag in HTML 5.

Attribute

new : New attribute in HTML5.

Properties value Description
属性 描述
height pixels 设置嵌入内容的高度。
src url 嵌入内容的 URL。
type type 定义嵌入内容的类型。
width pixels 设置嵌入内容的宽度。
height attribute" target="_blank" href="http://www.jb51.net/w3school/html5/att_embed_height.htm">height pixels Set the height of embedded content. src url The URL of the embedded content. type type Define the type of embedded content. width pixels Sets the width of embedded content.
It is said here that it is a new tag in HTML 5. In fact, it has long been used in HTML4.

Why do you say it is useless?

That’s 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,

Then the file extension in the url must be mp3. If If you want to pass a dynamic web page
such as "getMp3.php?id=12321", it cannot be played at all. Even if you specify the type attribute as "audio/mpeg3", it It's also not recognized as an mp3 file.

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