Are semantics and syntax the same?

前端 未结 9 815
旧时难觅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. =)

    0 讨论(0)
  • 2021-01-30 02:54

    Semantic web sites use the concept of the semantic web, which aims to bring meaning to web content by using special annotations to identify certain concepts in a page. This makes possible the automatic (by a computer, not a human) reasoning about the content, which improves its aggregation, extraction, indexing and searching.

    0 讨论(0)
  • 2021-01-30 02:56

    Syntax is the grammar of a language - the rules by which to form sentences or expressions.

    Semantics is the meaning you are trying to express with your code.

    0 讨论(0)
提交回复
热议问题