Are semantics and syntax the same?

前端 未结 9 967
旧时难觅i
旧时难觅i 2021-01-30 01:55

What is the difference in meaning between \'semantics\' and \'syntax\'? What are they?

Also, what\'s the difference between things like \"semantic website vs. normal we

9条回答
  •  感动是毒
    2021-01-30 02:51

    Syntax is the word order of a sentence. In English it would be the subject-verb-object form.

    Semantic is the meaning behind words. E.g: she ate a saw. The word saw doesn't match according to the meaning of the sentence. but it is grammatically correct. so its syntax is correct. =)

提交回复
热议问题