Semantics is the study of meaning in language. It analyzes the meaning of words, phrases, and sentences. There are two main types of meaning - conceptual meaning, which is the basic meaning conveyed by a word's literal use, and associative meaning, which refers to connotations a word carries. Semantics also studies semantic roles that indicate the relationship between words in a sentence, such as agent, theme, and instrument. Synonyms are words with closely related meanings, while antonyms are words with opposite meanings.