English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This article introduces the usage method of HTML embed width attribute, online instance demonstration of how to use HTML embed width attribute, browser compatibility, syntax definition and detailed information of its attribute values, etc.
with a height and width of 200 pixel flash animation:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <embed> width Attribute Usage-Basic Tutorial(oldtoolbag.com)</title> </head> <body> <embed src="helloworld.swf" width="200" height="200" style="border:1px solid"> </body> </html>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the width attribute.
The width attribute specifies the width of the embedded content (in pixels).
Tip: You can specify the height of the embedded content using the height attribute.
The <embed> tag is an HTML5 of the new tag in.
<embed width="pixels">
Value | Description |
---|---|
pixels | Specifies the width of the embedded content in pixels (for example, width="100"). |