<APPLET> or <OBJECT>/<EMBED>?

Discussion in 'Java' started by Andrew Thompson, Sep 30, 2005.

  1. There are regular threads asking whether the <applet>
    or nested <object>/<embed> elements should be used to
    place applets in web pages.

    I have searched Sun's site a number of times to find what
    Sun themselves advise, and previously failed to locate any
    definitive recommendation.

    Searching just yesterday (for something not directly
    related, of course) I stumbled across the following text, from..
    <http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html#applet>

    Title 'Using APPLET, OBJECT and EMBED Tags'
    Section 'Using the Applet tag'
    Para. 3
    "Note: The HTML specification states that the applet tag is deprecated,
    and that you should use the object tag instead. However, the
    specification is vague about how browsers should implement the object
    tag to support Java applets, and browser support is currently
    inconsistent. Sun therefore recommends that you continue to use the
    applet tag as a consistent way to deploy Java applets across browsers on
    all platforms."

    So there you go. Here, in 2005*, Sun is advocating use of
    an HTML 3.2 element to place applets in web pages.

    * The document comes from the Java 1.5/5.0 Javadocs and
    is dated 26 August 2005.

    [ Note that the applet element provides no inbuilt way to
    handle Java versioning, which is the main attraction of the
    nested object/embed alternative. ]
    Andrew Thompson, Sep 30, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UmljaGFyZCBSb2NoZQ==?=

    embed element/object

    =?Utf-8?B?UmljaGFyZCBSb2NoZQ==?=, Dec 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    339
    Ken Cox [Microsoft MVP]
    Dec 18, 2004
  2. Replies:
    0
    Views:
    340
  3. Arondelle

    Embed vs Object

    Arondelle, Jul 23, 2004, in forum: HTML
    Replies:
    13
    Views:
    6,230
    Arondelle
    Jul 24, 2004
  4. Christopher Richards

    Object ID embed and validation??

    Christopher Richards, Jan 18, 2005, in forum: HTML
    Replies:
    15
    Views:
    1,186
    Leif K-Brooks
    Jan 20, 2005
  5. code_wrong

    object to object -- embed instead

    code_wrong, May 21, 2006, in forum: HTML
    Replies:
    4
    Views:
    439
    code_wrong
    May 23, 2006
Loading...

Share This Page