This is a quick reference on MathTools HTML markup package. First and foremost it is intended to generate HTML documents and not (necessarily) web pages.
All web pages are HTML documents but not all HTML documents are web pages. The MathTools HTML package is optimized for generating technical documents rather than flashy pages. Using these classes makes it possible to generate HTML content intermixed with both MathML Presentation and SVG.
This is not to disparage flashy web pages, they simply are not within the definition scope of MathTools. MathTools HTML is provided for teachers who might prefer to design tests as a document on the hard drive rather than using text formatting for OpenOffice or another word processor.
MathTools HTML defines three structural block classes: PTag, DivTag, and HTMLTag. The SpanTag class is also philosophically a structural block but since it contains no structural blocks of its own it is not a specific part of the block tag hierarchy.
These classes are used for HTML tags containing specific item-tag entries: lists, definitions, and tables. The ListTag class generates both ordered and unordered list containers, the DLTag class handles definitions and the TableTag class handles tables.
Each of these container tags makes provision to add its own type of item tag which can be created, modified and added or quick-added via convenience methods.
These tag classes are primarily designed with inline formatting or text decoration. They include bold, italic and underline tag classes as well as LITag for list items, DDTag and DTTag for definitions and TDTag for table elements.
These last classes are item tag classes but are included within the decoration group because each of them can contain decorated text. Item tags cannot be added to other decoration tags, however, or any other place except where they belong!
The MathGenHTML class, exposed to scripts as 'MathHTM', is the class used to generate instances of the other tag classes. It also contains method to generate lists and tables from Object arrays and setter methods for default tag values.