eHow launches Android app: Get the best of eHow on the go.

How To

How to Add Java Applets Using HTML Programming

Contributor
By eHow Contributing Writer
(2 Ratings)

HTML (Hypertext Markup Language) is a computer language that is used to create web pages.Whether you are setting up a personal web page or a business web page, learning HTML code can be very beneficial. Knowing how to use the codes can help you manipulate your page settings.Adding Java Applets is a great way to give your site more appeal and attract viewers. A Java Applet is a program written using the Java programming language. They are usually used to add animation and interactive information to your site. There are many places on the internet that offer free Java Applets; or, if you know Java Programming Language, you can create your own.

Difficulty: Easy
Instructions
  1. Step 1

    Open your word processor or the text editor you will use to create your web page. Locate the web page you will be editing. Position your cursor inside the <CENTER> tag where you want the Java Applet to appear on your page.

  2. Step 2

    Type <APPLET CODE=“?”> Replace the question mark with the location of the Java Applet on your computer. Java Applet names have the .class extension. Inside of the <APPLET> tag, type WIDTH=? HEIGHT=? Replace the question mark with the width and height of the Java Applet, expressed in pixels.

  3. Step 3

    Type </APPLET> to complete the Java Applet. Your text should look like this:<CENTER><APPLET CODE=“game.class” WIDTH=240 HEIGHT=190></APPLET></CENTER>

  4. Step 4

    Open a new web browser to verify that your web page runs the Java Applet correctly. Test the Applet to verify that it is user-friendly.

Tips & Warnings
  • Display your web page in several browsers to see how each one renders it.
  • If you do not specify the correct height and width of the applet, all or part of the applet may not appear on your web page.
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Tags
Get Free Computers Newsletters

Copyright © 1999-2010 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. † requires javascript

eHow Computers
eHow_eHow Technology and Electronics