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.
See also: Compiler - Semantics Analysis
For example, in HTML, an img element represents an image.