It is simply used as a scripting tool to develop web pages. HTML is used to develop only Static pages. On the other hand, JAVA is a programming language which is used to develop web applications. It is a scripting language which is used to develop dynamic web applications.