The mayor and council shall have authority to provide by ordinance reasonable regulations for requiring owners or occupiers of property, also vacant property, to keep such property free of rubbish and undergrowth, waste or other materials dangerous to health, limb or property, or constituting a fire hazard, also dead or dangerous trees; and in case the owner or person responsible shall fail or refuse, after reasonable notice, to correct such condition, the municipality shall have the right to correct the same and tax the reasonable cost against the owner or person responsible, as the case may be.