:target

The :target pseudo-class is applied to the target element, in other words, to the identifier that is specified in the browser's address bar.

Syntax



element:target {
  property: value;
}