How do I put a Mathematica notebook on the web

Placing a Mathematica notebook on the web is platform independent. The following instructions are in reference to placing a notebook  on the web under Window 95/98/NT.

Converting a Notebook to HTML

To convert an entire notebook into html do the following:

1. Open the notebook file
2. Go under the File pull down menu, 
3.Select Save As Special->HTML.
4. A dialog box will appear, prompting you for the name of the directory to save your file in.

Because graphics and hyperlinks from the notebook will be stored in separate directories in this main folder and Mathematica automatically names these files, you should type an unused name for the directory.

Some tips and tricks

Including external references

Mathematica will translate all hyperlinks to other URLs in the notebook into the HTML equivalent, so all the links in the notebook will still work.

Saving each section in a separate file

Mathematica saves every closed group of cells into a separate HTML document in the Links subdirectory of the directory it saves the main index.html file in. This feature makes it very easy to create well organized web sites directly in Mathematica.

Saving animations

There are a number of ways to present Mathematica animations on the web. Unfortunately, Mathematica does not automatically convert animations into a proper format. On the Macintosh, animations can be exported as QuickTime movies that can be viewed with Apples free viewer.
On all platforms, the Export command supports exporting animations created in Mathematica as animated GIF. To do this, just create a Mathematica animation or list of graphics and use Export["filename", graphics, "GIF"]. Any list of graphics passed to this will be exported as an animated gif file. Export supports a large number of options, including animation speed and color reduction, please refer to the documentation for more information on these options.

Note: Creating animated gifs in Mathematica 3 and slowdown in Mathematica 4.0

Export could not handle animated gifs in Mathematica 3. Also, on some platforms exporting a set of graphics as an animated gif file takes a very long time. This is due to a specific implementation of the export routines that will be changed in future releases. Right now, there is a slightly more inconvenient, but about 25 times faster alternative to using Export that also works in Mathematica 3.
Simply select the graphics you want to include in the animated gif, copy and paste them into a new notebook and save that notebook as a html document using Save As Special. Mathematica will create a new directory with an index.html file and all the images in the documentation in a separate sub-directory called images. You can then use any number of programs to arrange these gifs into an animated gif.