English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Applet element in HTML ( <applet>) indicates that it contains Java applets. This element in HTML5is 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 it requires additional plugins and installation process to work.
HTML5 The <applet> tag is not supported. Please use <object> or <embed> The tag replaces it.
No HTML 4.01 In HTML, 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 | Descrição |
---|---|---|
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 | Descrição |
---|---|---|
align | left right top bottom middle baseline | Define the alignment of applet relative to surrounding elements. |
alt | text | Define o texto de substituição do applet. |
archive | URL | Define a localização do arquivo. |
codebase | URL | Define a URL de base para o applet especificado no atributo code. |
height | pixels | Define a altura do applet. |
hspace | pixels | Define o espaçamento horizontal ao redor do applet. |
name | name | Define o nome do applet (usado em scripts). |
vspace | pixels | Define o espaçamento vertical ao redor do applet. |
width | pixels | Define a largura do applet. |
No HTML 4.01 Na tabela, a etiqueta <applet> suporta os seguintes atributos padrão:
Atributo | Valor | Descrição |
---|---|---|
class | classname | Define o nome da classe do elemento |
id | id | Define o id único do elemento |
style | style_definition | Define estilo inline do elemento |
title | text | Define informações adicionais do elemento |
Para uma descrição completa, acesseAtributos padrão.
No HTML 4.01 onde a etiqueta <applet> não suporta quaisquer atributos de evento.
Para uma descrição completa, acesseAtributos de evento.