<applet> vs <object>

applet, html, java, safari

Solution

Use `applet` if you have found that it works more often. The `object` element was introduced as a theoretical unification that would be a catch-all for any embedding of external data. It never worked well, and modern HTML development has effectively abandoned the unification idea. HTML5 introduces `audio` and `video`, for example and keeps `img` (logical unification would surely deprecate `img`, because an image can be embedded with `object`).

Problem

Just out of curiosity, between `<applet>` vs `<object>` for a Java applet, which one should I use? I know that `<applet>` is deprecated, however Sun still recommends the use of `<applet>`. Is there any drawback between the two tags? Because when I use `<object>` for Mac in Safari, it causes a problem saying that the page can't load, even though the page loaded properly, and when I check the activity window it said that the class was not found/cancelled. For example:

Original source

Related problems