HTML <embed> src 属性
HTML <embed> 标签
实例
一个嵌入的 flash 动画:
<embed src="helloworld.swf">
尝试一下 »
浏览器支持





所有主流浏览器都支持 src 属性。
定义和用法
src 属性规定要嵌入的外部文件的地址。
HTML 4.01 与 HTML5之间的差异
<embed> 标签是 HTML5 中的新标签。
语法
属性值
值 |
描述 |
URL |
规定要嵌入的外部文件的地址。
可能的值:
- 绝对 URL - 指向另一个网站(比如 href="http://www.example.com/hello.swf")
- 相对 URL - 指向网站内的一个文件(比如 href="hello.swf")
|
HTML <embed> 标签