Semantics is a term that, in computer programming, describes the behaviours that result from the execution of a particular program or piece of software. Not to be confused with syntax, which, in programming, refers to the way a program is expressed or written. Generally speaking, it’s easier to check and troubleshoot syntax than it is semantics, as testing every possible condition a program could be run in is effectively impossible.