Easy Tutorial
❮ Pr Charset Rule Css3 Pr Nav Right ❯

CSS3 :target Selector

Complete CSS Selector Reference

Example

Highlight active HTML anchor:


Definition and Usage

The anchor name is a URL that links to an element within a file. The element is linked to the target element.

The :target selector can be used to style the currently active target element.


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Selector
:target 4.0 9.0 3.5 3.2 9.6

Complete CSS Selector Reference

❮ Pr Charset Rule Css3 Pr Nav Right ❯