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

Is embed a new tag in html5?

Mar 15, 2022 pm 04:26 PM
embed html5

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!

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

Hot Article

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

Nested Table in HTML

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Table Border in HTML

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

HTML margin-left

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

HTML Table Layout

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Moving Text in HTML

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

HTML Ordered List

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

HTML onclick Button

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

HTML Input Placeholder

See all articles