Semantics primarily studies the meaning of words and sentences, including how meaning is conveyed and interpreted.