For the purpose of promoting health, safety, morals or the general welfare, councils of incorporated towns are hereby empowered to regulate and restrict the height, number of stories, and size of buildings and other structures, their construction, alteration, extension, repair, maintenance, and all facilities and services in or about such buildings and structures and percentage of lot that may be occupied, the size of yards, courts and other open spaces, the density of population, and the location and use of buildings, structures, and land for trade, industry, residence or other purposes, and may also establish and maintain building lines and set back building lines upon any or all public streets.
53 P.S. § 53801