2. CSS3 selectors
Prev | Chapter 4. Other extensions | Next

## 2. CSS3 selectors

In addition to all CSS2 selectors, XXE also supports the following CSS3 selectors:

Pattern | Meaning
--- | ---
``E`:last-child` | an ``E`` element, last child of its parent
``E`:first-of-type` | an ``E`` element, first sibling of its type
``E`:last-of-type` | an ``E`` element, last sibling of its type
``E`:root` | an`` `E` element which is the root element of a document
``E`:empty` | an ``E`` element which does not contain child nodes of any type
`[`att`^=`val`]` | the ``att`` attribute whose value begins with the prefix "``val``"
`[`att`$=`val`]` | the ``att`` attribute whose value ends with the suffix "``val``"
`[`att`*=`val`]` | the ``att`` attribute whose value contains at least one instance of the substring "``val``"
`E``:not(`simple_selector`)` | an ``E`` element, not matched by `simple_selector`.

Prev | Up | Next
1. Built-in CSS rules | Home | 3. Styling an element which contains a specific processing instruction