"; the embed tag must have the src attribute, which is used to specify the The URL of the embedded content."/> "; the embed tag must have the src attribute, which is used to specify the The URL of the embedded content.">

Home >Web Front-end >Front-end Q&A >Is embed a new tag in html5?

Is embed a new tag in html5?

青灯夜游
青灯夜游Original
2022-03-15 16:26:352542browse

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="...">

The tag must have the src attribute.

Embed tag attributes:

Attribute Value Description
height pixels Sets the height of embedded content.
src url The URL of the embedded content.
type type Defines the type of embedded content.
width pixels Set 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>

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!

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