highlight

The highlight CSS pseudo-element specifies the portion of a document that is being contained or partially contained in all the ranges of the registered custom highlight with the custom highlight name , if any.

Syntax

selector::highlight(<custom-highlight-name>)
{
    property: value;
}

Examples

1

2

3

4

after

backdrop

before

first-letter

first-line

marker

placeholder

selection

World Wide Web Consortium (W3C)

HomeMenu