What is the standard for deploying a Java applet in an HTML5 document?

I would like to deploy an old Java (1.5) applet to an HTML5 web page.

Most of the materials available on the Internet regarding Java applets and HTML5 are either outdated, not working, or contain many hacks and workarounds for compatibility with multiple browsers. However, I have the luxury of not worrying about compatibility.

I understand that the HTML5 standard is still under development, but most of it is fairly stable for people. So the browser leans aside, what (probably should be) a standard compatible method for embedding a Java applet in a file, jarand what is its approximate browser support?

+3
source share
1 answer

HTML5 . :

, , JavaScript HTML , - . , , , Java.

, :

<figure>
  <object type="application/x-java-applet">
    <param name="code" value="MyJavaClass">
    <p>You do not have Java available, or it is disabled.</p>
  </object>
  <figcaption>My Java Clock</figcaption>
</figure>

HTML5 <object>, .

+1

All Articles