Der <applet>-Tag

Applets werden durch einen besonderen Tag in den HTML-Code intergriert. Beim HTML-Standard 3.2 heißt dieser Tag applet:

<applet name="mein_erstes_Applet" code="HelloWorldApplet"
        codebase="http://lxdv10.gsi.de/twiki/pub/Java/FirstApplet/"
        width="200" height="60">
   <param name="Variable_xy" value="test123" />
</applet>

Neuere Standards haben diesen Tag jedoch verworfen (deprecated).

Der <object>-Tag

HTML 4 hat einen allgemeineren Tag zum Einbinden von Multimedia-Objekten ersonnen:

<object name="mein_erstes_Applet"
        codetype="application/java-vm"
        codebase="http://lxdv10.gsi.de/twiki/pub/Java/FirstApplet/"
        width="200" height="60">
   <param name="code" value="HelloWorldApplet.class" />
   <param name="type" VALUE = "application/x-java-applet">
</object>

Der <embed>-Tag

Netscape hat zur Einbindung von Multimedia-Objekten vor der Definition des object Tags bereits eigenmächtig den emded Tag definiert. Dieser ist nicht Bestandteil eines offiziellen Standards.

<embed type="application/x-java-applet"
       code="HelloWorldApplet.class"
       width=200 height="60"
       pluginspage =" http://java.sun.com/products/plugin/index.html#download">
   <noembed>
      Your is completely ignoring the <embed> tag!
   </noembed>
</embed>

-- Christo - 28 Nov 2003

This topic: Java > WebHome > JavaProgramming > AppletTag
Topic revision: 2003-11-28, ChristopherHuhn
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)