Are you asking how to use Java in HTML?
Theoretically you can use
`<script type="application/java">`, but I don't think any browser supports that. Instead people used to compile their Java into "applets" and embed those with
What with the rise of mobile platforms, I would not advise using any of it. Neither Android nor iOS ship with Java plugins for their browsers. And even on the desktop market, Apple has stopped shipping Java on their platform.