- : Вложение расширенных элементов
- Интерактивный пример
- Атрибуты
- Примечание
- Примеры
- Спецификации
- Поддержка браузерами
- Смотрите также
- Found a content problem with this page?
- HTML Tag
- Syntax
- Example of the HTML tag for placing a logo:
- Result
- Example of the HTML tag for placing a audio:
- Example of the HTML tag for placing a video:
- Attributes
- HTML Tag
- Warning
- Suggestion
- Browser Support
- Attributes
- Global Attributes
- Event Attributes
- Related Pages
- Default CSS Settings
- COLOR PICKER
- Report Error
- Thank You For Helping Us!
: Вложение расширенных элементов
**HTML-элемент **вставляет расширенный контент в выбранное место документа. Этот контент может быть представлен от внешнего приложения или другого источника интерактивного контента, такого как плагин для браузера, например.
Интерактивный пример
Примечание: Этот раздел посвящён только элементу, который является частью стандарта HTML5, и никак не касается ранних, нестандартизированных его реализаций.
Имейте ввиду, что большинство современных браузеров посчитали устаревшей и удалили поддержку встраивания плагинов, так что использование , как правило, не рекомендуется, если вы хотите, чтобы ваш сайт одинаково работал у всех его пользователей.
Категории контента | Flow content (en-US) , phrasing content (en-US) , embedded content, interactive content, palpable content. |
---|---|
Допустимое содержимое | Отсутствует, это empty element. |
Пропуск тегов | Должен иметь открывающий тег, закрывающий тег должен быть пропущен |
Допустимые родители | Любой элемент, который допускает встроенный контент |
Допустимые ARIA-роли | application (en-US) , document (en-US) , img (en-US) , presentation (en-US) |
DOM-интерфейс | HTMLEmbedElement (en-US) |
Атрибуты
Атрибуты этого элемента включают все глобальные атрибуты.
Отображает высоту ресурса в CSS пикселях. Это должно быть абсолютное значение; проценты не допустимы.
Ссылка на встраиваемый ресурс.
MIME-тип, используемый для выбора подключаемого модуля для создания экземпляра.
Отображает ширину ресурса в CSS пикселях. Это должно быть абсолютное значение; проценты не допустимы.
Примечание
Вы можете использовать свойство object-position , чтобы настроить расположение встроенного объекта в рамке элемента, а также свойство object-fit , чтобы контролировать регулирование размер объекта в соответствии с рамкой.
Примеры
embed type="video/quicktime" src="movie.mov" width="640" height="480" />
Спецификации
Поддержка браузерами
BCD tables only load in the browser
Примечание: До версии 45, Firefox не отображает содержимое HTML-ресурса, но сообщает о том, что для отображения контента требуется плагин (см. баг 730768).
Смотрите также
Found a content problem with this page?
This page was last modified on 4 мар. 2023 г. by MDN contributors.
Your blueprint for a better internet.
HTML Tag
The tag is used as a container for external applications, multimedia and interactive content that the browser doesn’t understand. External plug-ins or special programs must be connected for their proper display. The display of the embedded content depends on the file type, the attributes of the tag, and the plugins installed in the browser.
Although supported by the browsers, the
Use the CSS object-position property to correct the positioning of the embedded object within the element’s frame.
Syntax
The tag is empty, which means that the closing tag isn’t required. But in XHTML, the () tag must be closed ().
Example of the HTML tag for placing a logo:
html> head> title>Title of the document title> head> body> embed src="/uploads/media/default/0001/01/0710cad7a1017902166203def268a0df2a5fd545.png" /> body> html>
Result
Example of the HTML tag for placing a audio:
html> html> head> title>Title of the document title> head> body> embed type="audio/mpeg" src="/build/audios/audio.mp3" width="200" height="100"> body> html>
Example of the HTML tag for placing a video:
html> html> head> title>Title of the document title> head> body> embed type="video/ogg" src="/build/videos/arcnet.io(7-sec).mp4" width="300" height="200" title="Arcnet.io video"> body> html>
Attributes
Attribute | Value | Description |
---|---|---|
align | Specifies the alignment of the embedded content on the page and the way it is wrapped around the text. | |
left | Aligns to the left. | |
right | Aligns to the right. | |
center | Aligns the center. | |
justify | Aligns to the right and left edges. | |
height | pixels | Defines the height of the embedded content. |
pluginspage | URL | Address, from where we can download and install necessary plug-in. |
src | URL | Indicates the path to the file which will be inserted in the tag. |
type | MIME-type | Defines the MIME type (specification for the transmission over the network of files of various types) of the embedded content. |
vspace | pixels | Defines the vertical indent from the embedded content to the surrounding one. |
width | pixels | Defines the width of the embedded content. |
HTML Tag
The tag defines a container for an external resource, such as a web page, a picture, a media player, or a plug-in application.
Warning
Most browsers no longer support Java Applets and Plug-ins.
ActiveX controls are no longer supported in any browsers.
The support for Shockwave Flash has also been turned off in modern browsers.
Suggestion
To display a picture, it is better to use the tag.
To display HTML, it is better to use the tag.
To display video or audio, it is better to use the and tags.
Browser Support
Attributes
Attribute | Value | Description |
---|---|---|
height | pixels | Specifies the height of the embedded content |
src | URL | Specifies the address of the external file to embed |
type | media_type | Specifies the media type of the embedded content |
width | pixels | Specifies the width of the embedded content |
Global Attributes
Event Attributes
Related Pages
Default CSS Settings
Most browsers will display the element with the following default values:
COLOR PICKER
Report Error
If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
Thank You For Helping Us!
Your message has been sent to W3Schools.
Top Tutorials
Top References
Top Examples
Get Certified
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.