Taxes generally fail in the pursuit of correcting externalities because taxes are set by policy and committees are notoriously bad at pricing. The generally better way to cover externalities is by propertization (so a carbon AUCTION - and not cap-and-trade which has all sorts of politically motivated loopholes and subsidies - would be smarter than a carbon TAX). Furthermore there are plenty of activities that incur externalities (such as homelessness) which we probably shouldn't be taxing.
An even better way to correct externalities is to stop making them externalities through social action - get people to value things like companies that destroy the environment less. It's hard work, but you just have to not be lazy in your social action.