Home > Web Front-end > H5 Tutorial > body text

Introduction to the use of HTML5 embed tag_html5 tutorial skills

WBOY
Release: 2016-05-16 15:48:59
Original
2070 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.

Property Value Description
height pixels Set the height of embedded content.
src url URL of embedded content.
type type defines 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 you want to play it through 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 also doesn't recognize it as an mp3 file.
Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template