Is embed a new tag in html5?

青灯夜游
Release: 2022-03-15 16:26:55
Original
2464 people have browsed it

Embed is a new tag of HTML5. It can define a container for embedding external applications or interactive programs (plug-ins). The syntax "<embed src="...">"; the embed tag must There is the src attribute, which is used to specify the URL of the embedded content.

Is embed a new tag in html5?

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

The tag is a new tag in HTML 5.

tag defines a container for embedding external applications or interactive programs (plug-ins).

Syntax:

<embed src="...">
Copy after login

The tag must have the src attribute.

Embed tag attributes:

AttributeValueDescription
heightpixelsSets the height of embedded content.
srcurlThe URL of the embedded content.
typetype Defines the type of embedded content.
widthpixelsSet the width of the embedded content.

Example: embedded flash cartoon

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
</head>
<body>

<embed src="/statics/demosource/helloworld.swf">

</body>
</html>
Copy after login

Is embed a new tag in html5?

[Related recommendations: html video tutorialwebfrontend

The above is the detailed content of Is embed a new tag in html5?. For more information, please follow other related articles on the PHP Chinese website!

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