Meaning of words and how to use them is called?

Meaning of words and how to use them is called?

A. Syntax
B. Semantics
C. Pragmatics
D. IPA