HTML and CSS Reference
In-Depth Information
Applies to:
Any element
Matches an element which is itself matched by the fragment identifier portion of the URI
used to access the page. Thus,
would be matched by :target and would apply the declared styles to any element with the id
of target-pseudo . If that element was a paragraph, it would also be matched by p:target .
:target {background: #EE0;}
Search WWH ::

Custom Search