To provide local public institutions of general education for citizens of Illinois, the corporate authorities of any city may establish and maintain a public library for the use and benefit of the residents of the city and may, subject to the limitations of Article 3, levy a tax for library purposes.