Code - Semantic (Meaning|Behaviour)

> Code - (Programming|Computer) Language > Code Property

1 - About

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.

See also: Compiler - Semantics Analysis


3 - Example

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

<img src=myPicture.jpg/>

4 - Documentation / Reference