Split html code to pages with maximum size.