📜  HTML applet标签

📅  最后修改于: 2020-11-04 00:52:09             🧑  作者: Mango

HTML标签(HTML5不支持)

HTML标签用于将Java applet嵌入HTML文档中。 HTML 4.0中已弃用该元素,可以使用它代替它和新添加的元素

还不建议使用Java applet,并且大多数浏览器不支持使用插件。

注意:标记在HTML4.0中已弃用,HTML5不支持。所以你可以使用标签或标签代替

句法

.............

以下是一些有关的规格标签

Display Block
Start tag/End tag Both Start tag and End tag
Usage Embed Applets




  Applet Tag
 
 
   

Example of Applet Tag

Sorry! you need Java to see this

属性

特定属性

Attribute name Value Description
code URL It specifies the URL of Java applet class file.
width pixels It specifies the display width of the applet panel.
height pixels It specifies the display height of applet panel
align
  • left
  • right
  • top
  • middle
  • bottom
It specifies the position of applet application relative to surrounding content.
alt text It is used to display alternative text in case browser does not support Java.
archive URL This specifies the archived or compressed version of an applet application.
object name It specifies the URL or reference to a serialized representation of an applet.
codebase URL It specifies the exact or relative URL of applets .class file specified in the code attribute.
hspace pixels It specifies the horizontal space around the applet.
vspace pixels It specifies the vertical space around the applet.
name name It specifies the name for the applet

全局属性

标签支持HTML中的所有全局属性

事件属性

标签支持HTML中的所有事件属性

支持的浏览器

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Not supported Not Supported Yes Not Supported Yes