Semantics vs. Syntax

Syntax is the grammar. It describes the way to construct a correct sentence. For example, this water is triangular is syntactically correct.
Semantics relates to the meaning. this water is triangular does not mean anything, though the grammar is ok.


https://stackoverflow.com/questions/209979/are-semantics-and-syntax-the-same