pseudo-class

:current — CSS reference

Time-dimensional selector intended for elements currently presented on a timed timeline, such as timed text. Ordinary document selection is not a timed presentation.

Formal Syntax & Structure

css syntaxcss
:current { color: blue; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:current</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{color:green}:current{color:blue}</style><body><p id="a">Ordinary text</p></body></html>
CSS Reference