Syntax refers to \emph{grammar}, while semantics refers to \emph{meaning}. Syntax is the set of rules needed to ensure a formula is a well-formed formula; semantics assigns a truth value to formulas by assigning a truth value to the propositional variables used in the formula and by assigning the meaning via truth table to the logical operators.