Target pseudo-class

This pseudo-class is called target pseudo-class and represents an element which matches against fragment identifier of the URI. For example an URI is pointing to anchor named partHelp like here: https://example.com/test.html#partHelp the element with the ID partHelp will be selected by this selector.

:target {
    /* declarations */
}

Example

:target {
    outline: red dotted;
}

You can also read this

Remove duplicate elements from list by value with jQuery

jQuery is very useful and easy to learn and it’s...

.list {
  list-style:none;
}

Random name picker with Javascript

My wife and I will become parents. I believe most...

?

start
stop