Affirming the consequent is a formal fallacy because it is an error in logical form: If P then Q; Q; therefore P. Ad hominem, slippery slope, and appeal to nature are all informal fallacies arising from content and context rather than logical structure.