A priori ('from the earlier') and a posteriori ('from the later') are Latin phrases used in philosophy & linguistics to distinguish types of knowledge, justification, or argument by their reliance on experience. A priori knowledge is independent of any experience. Examples include mathematics, tautologies and deduction from pure reason. A posteriori knowledge depends on empirical evidence. Examples include most fields of science and aspects of personal knowledge.
The terms originate from the analytic methods found in Organon, a collection of works by Aristotle. Prior analytics (a priori) is about deductive logic, which comes from definitions and first principles. Posterior analytics (a posteriori) is about inductive logic, which comes from observational evidence.