Primarily, the HTML DOM customizes interfaces to the elements defined in the HTML 4.0 specification. It also provides custom document and collection interfaces. As a rule, the elements differ from those in the core by offering convenience functions for access to attributes and similar information. However, there is also an interface to an HTML parser through methods such as HtmlDocument.write.