CSS2 offers many possibilities how to match an element. If only the element name is given, it matches everywhere (1). The character [*] matches any element (2).
| XML Source | CSS stylesheet | Example link |
|---|---|---|
|
(1)
<AAA> <BBB>bbb</BBB> <CCC>ccc <DDD>ddd</DDD> </CCC> </AAA> | BBB {color:red} CCC {color:blue} DDD {color:maroon} | View output |
| XML Source | CSS stylesheet | Example link |
|
(2)
<AAA> <BBB>bbb</BBB> <CCC>ccc <DDD>ddd</DDD> </CCC> </AAA> | * {color:red} | View output |