syntax

Grammar consists of a wide set of structural rules, while syntax focuses specifically on the order of words in a sentence.