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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 15:47:49
Original
1750 people have browsed it

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.

Related labels:
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
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template