Syntax is the grammar of a programming language: the rules for which symbols, keywords and structures may appear, and in what order. A statement can be syntactically correct, meaning the language accepts it, without being meaningful or doing what the author intended; meaning is called semantics. When code breaks the rules, for example by missing a bracket, a compiler or interpreter reports a syntax error and refuses to run it.
Syntax errors are usually easy to find because tools catch them at once. Logic errors are harder: the code is valid and runs, but produces the wrong result. In smart contract languages such as Solidity this distinction matters, because a contract that compiles cleanly can still contain a flaw that lets funds be drained once it is deployed on chain. That is why a smart contract audit focuses on logic rather than syntax. Languages designed for contracts, such as Move, use syntax and type rules that make some classes of mistake impossible to write.
Ref 1300000354