semantics:literal meaning
pragmatics:contextual meaning
eg:It’s so cold!
semantics: to illustrate the fact that the temperature is quite low and the speaker is cold
pragmatics: to convey some connotative meaning like “could you please close the window?”