English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Applet element in HTML ( <applet>) indicates that it contains Java applets. This element in HTML5have been deprecated and can no longer be used. Web developers should use more general elements.
An embedded Java applet:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial Website(w3(codebox.com)</title> </head> <body> <applet code="Bubbles.class" width="350" height="350"> Java applet that draws animated bubbles. </applet> </body> </html>
IEFirefoxOperaChromeSafari
Note:Some browsers still have support for <applet>, but they require additional plugins and installation processes to work.
HTML5 The <applet> tag is not supported. Please use <object> or <embed> tag replaces it.
En HTML 4.01 In it, the <applet> element is deprecated.
The <applet> tag defines an embedded applet.
HTML5 The <applet> tag is not supported in HTML. 4.01 The <applet> tag is deprecated.
Atributo | Valor | Descripción |
---|---|---|
code | URL | Specifies the filename of the Java applet. |
object | name | Specifies the resource name of a series of versions containing the applet. |
Atributo | Valor | Descripción |
---|---|---|
align | left right top bottom middle baseline | Define the alignment method of applet relative to the surrounding elements. |
alt | text | Establece el texto de reemplazo del applet. |
archive | URL | Establece la ubicación del archivo. |
codebase | URL | Establece la URL base del applet especificada en el atributo code. |
height | pixels | Establece la altura del applet. |
hspace | pixels | Define el espacio horizontal alrededor del applet. |
name | name | Define el nombre del applet (usado en scripts). |
vspace | pixels | Define el espacio vertical alrededor del applet. |
width | pixels | Establece el ancho del applet. |
En HTML 4.01 En, la etiqueta <applet> admite los siguientes atributos estándar:
Atributo | Valor | Descripción |
---|---|---|
class | classname | Establece el nombre de la clase del elemento |
id | id | Establece el id único del elemento |
style | style_definition | Establece el estilo en línea del elemento |
title | text | Establece información adicional del elemento |
Para una descripción completa, visiteAtributos estándar.
En HTML 4.01 donde, la etiqueta <applet> no admite ningún atributo de evento.
Para una descripción completa, visiteAtributos de eventos.