Code - Semantic (Meaning|Behaviour)


Semantic is also known as intrinsic meaning.

In a programmatic language:

  • Syntax is like having the words in a sentence in the right order.
  • whereas Semantics is like having the sentences in a paragraph in the right order.

Declarative language declares the semantic and therefore creates a data structure

See also: Compiler - Semantics Analysis


For example, in HTML, an img element represents an image.

<img src=myPicture.jpg/>

Documentation / Reference

Powered by ComboStrap