Node Types and IDs
There are 14 different types of nodes, each is represented by a PHP constant

Node IDs
For those types listed in bold above, a node ID is also associated which maps to a known HTML tag. These IDs are represented by constants of the form TIDY_TAG_TAGNAME WHERE TAGNAME is the HTML tag (such as 'A', 'BODY', etc.)