Host Graphics Now
HTML Help
John's Home Page

HTML Source
Minimal HTML Source for Java applets
The simplest HTML file to include a Java applet includes only the tags to include the applet.  This is not a complete HTML page (only the applet will be seen,) but it is sufficient for appletviewer.  The Netscape and Microsoft browsers also ignore what is missing. 
The WIDTH and HEIGHT are expressed in pixels, and should be set to the appropriate values.
The PARAM NAME should not be changed.  THE PARAM VALUE should be changed to the name of the Java application.
The words "Your browser does not support Java applets" will only be seen in browsers which do not support Java.
Create the page using any text editor (such as Notepad,) and save it as a text-only file with the extension .html or .htm.

<APPLET CODE="NetscapeApplet" WIDTH=100 HEIGHT=100>
  <PARAM NAME="ApplicationClass" VALUE="LineDemo1">
  Your browser does not support Java applets
</APPLET>
HTML Page Framework
An HTML page is a text file containing HTML tags which are interpreted by the browser to format the text.
Most (but not all) tags appear in pairs.  The opening tag consists of "<", the name of the tag, and ">".  The closing tag consists of "</", the name of the tag, and ">". 
The entire page is contained within an "HTML" tag. 
Tags can be nested, but should not overlap.  The HTML tag contents usually contain a "HEAD" tag, and a "BODY" tag. 
The contents of the "HEAD" tag do not show on the page, but typically contain a TITLE, and information for documentation and search engine use.
The contents of the "BODY" tag will be seen in the browser window.  This is where the "APPLET" tag should be placed. 

<HTML>
<HEAD>
  <TITLE>Text between the title tags 
                  will appear as the title 
                  of the browser window<TITLE>
</HEAD>
<BODY>
   ...
    The visible contents of the page should be
    in the "BODY" section.
   ...
</BODY>
</HTML>
HTML Paragraphs
Text contained within a "P" tag will appear in a separate paragraph.

<P>This text will be formatted into a paragraph by the browser.&nbsp; Several sentences can, of course, be put into a single paragraph.&nbsp; </P> <P>Multiple spaces and carriage returns are ignored by the browser.&nbsp; In order to show two spaces at the end of a sentence, use the special HTML entity "&nbsp;" followed by a space or a carriage return.&nbsp; </P>

This text will be formatted into a paragraph by the browser.  Several sentences can, of course, be put into a single paragraph. 

Multiple spaces and carriage returns are ignored by the browser.  In order to show two spaces at the end of a sentence, use the special HTML entity "&nbsp;" followed by a space or a carriage return. 

HTML Headings
HTML page headings are contained within "H1" through "H9" tags.  The number controls the size of the heading type, with 1 being the largest, and 9 being the smallest.  In practice, most browsers stop making the type smaller at about H5.

<H1>This will be the largest heading</H1> <H4>This will be a smaller heading</H4> <H9>And this will be the smallest heading</H9>

This will be the largest heading

This will be a smaller heading

And this will be the smallest heading
See Also:
Go To Cartesian Index


Go To Graphics Now Home Page
©1999, J.H.Young E-Mail Me

1