The mayor and council shall have the authority to levy and collect such tax as they may deem proper upon dogs kept within the limits of said city; to provide for the registration thereof, and to prescribe such ordinances respecting the keeping of dogs as may be deemed proper, and to prescribe punishment for violation of said ordinances.