CSS target Property

If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!

Description

The target property is a shorthand property for setting the individual target properties (i.e., 'target-name', 'target-new' and 'target-position') at the same place in the style sheet.

The target property has been deprecated or is no longer in any CSS working groups.

Initial value
See individual properties
Applies to
Hyperlinks
Inherited
No
Computed value
See individual properties
Animatable
No
JavaScript syntax
object.style.target

Syntax

target: <target-name> || <target-new> || <target-position>

Values

  • <target-name>See the target-name CSS property for values.
  • <target-new>See the target-new CSS property for values.
  • <target-position>See the target-position CSS property for values.

Example

.class {
   target: new tab front; 
}

Browser Support

The following table will show you the current browser support for the CSS target property.

Desktop
Edge Chrome Firefox Opera Safari
?????
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
??????