Pseudo-class
In CSS, a pseudo-class selector targets elements depending on their state rather than on information from the document tree. For example, the selector a:visited
applies styles only to links that the user has already followed.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2024 by individual mozilla.org contributors. Content available under a Creative Commons license.