What are specific examples that show the difference between "grammar" and "syntax"?
Grammar= rules, Syntax= word order
Grammar is the rules of language. It determines when a person puts a comma, a period, or a semicolon; it says what order to put words in so that they make sense.
Syntax is word order. For example, in poetry the traditional word order is sometimes changed to create rhythm or flow in the work. Another example are the phrases: "All eagles are birds" and "all birds are eagles". The first is a true sentence, but the second isn't necessarily true. The word order influences the meaning even though both sentences are grammatically correct.