1. A method comprising: analyzing one or more functions associated with a web page; forming a hierarchical structure of the web page based on said analyzing; and paginating the web page based on said hierarchical structure, wherein said analyzing is performed by using one or more function-based object models that represent objects comprising the web page, wherein the objects comprise: one or more objects of a first type that are associated with the web page, wherein said first type objects are configured to perform at least one of multiple different types of functions; and one or more objects of a second type that are associated with the web page, wherein said second type objects can comprise a set of other objects, and wherein said second type objects can have all of the functions of the first type objects and, in addition, other functions that include a clustering function in which root children of a second type object are clustered in accordance with rules that reflect an author's intention regarding root children relationships and hierarchies.