The answer the question owner thought best met their needs.
The accepted answer can be recognized by a green checkmark under the vote arrows. Accepting an answer is encouraged but never required.
Learn more about accepted-answers:
Reference: adapted excerpt and wiki from the main Meta Stack Exchange site.