Syntax is the definition of normative structure of data.
Syntax (greek syntaxis = Arrangement, Ordering) as in grammatics denotes the study of the principles and processes by which sentences are constructed in particular languages.
In formal languages, syntax is just a set of rules, by which well formed expressions can be created from a fundamental set of symbols (alphabet + extra characters).
In computer science, syntax defines the normative structure of data.
Syntax tells how to form information ad how to make valid sentences in a specific language. Syntax comes before Semantics. Semantics tells the meaning of the information that is pertained in the sentences of the syntax.