In programming,Semanticsrefers to themeaningof a piece of code â for example 'what effect does running that line of JavaScript have?', or 'what purpose or role does that HTML element have' (rather than 'what does it look like?'.)