The target pseudo-class

The target pseudo-class specifies how a target element will look like. The target element is the one to which we refer id by indicating at the end of the URL its id after the # hash (example: /css/target.html#my-id).

Syntax

cssselector:target {
  
}