A separate HTML file is used for each page at each scale factor. The html file determines
  1. Document title in browser
  2. Positioning of page in browser
  3. Bounding box of the page
  4. Where font files are found by the software
  5. Which page is displayed
    (usually guessed from the filename)
  6. What scale factor is used
    (usually guessed from the filename)
  7. What dvi file is displayed
    (usually guessed from the page and scale factor)
Additional optional parameters determine
  1. File naming scheme
    (A CGI script could be used to generate the html files, for example)
  2. Adjustments to the top and left margins
  3. Font resolution
For example, the html file page13scale3.html might contain
    <title>A Great Paper - Page 1</title>
  <body bgcolor=#FFFFFF>
    <p align=center>
      <applet codebase=../../idviclasses/
        <param name=fontBase value=../../pkfonts/>
        <param name=pageMax  value=30>
The applet will infer from the filename that it should display page 13 of the document, at scale factor 3. Since no document name is given explicitly, it looks for a file named page13.dvi, and displays the first page of that file. It also guesses that the next and previous pages can be displayed by asking the browser to display the files page12scale3.html and page14scale3.html, respectively, and that HyperTeX links in the document of the form <a href="pageNNN.dvi"> can be traversed by asking the browser to display the file pageNNNscale3.html.

Of course, it is possible to disable all of this inference by giving more information. The fileName applet parameter can be used to give the name of a dvi file explicitly. The pageFirst applet parameter determines what the number of the first page in the dvi file is. If we had given the options fileName="paper.dvi" and pageFirst=1 in the html example above, then the applet would have loaded the file paper.dvi and displayed the 13th page of that file.