Selectors - *

  • Not at all supported by Netscape 4, iCab and Omniweb.
  •  

    How to select all elements.

    Testsheet:

    * {color: #cc0000;}
    

    * is a universal selector, meaning that it denotes every single element on the page. As a result all text on this page that otherwise has no color declaration should be red.

    Opera 5.10- makes all text red, but this seems to be an error. A reader mailed me that the cascading order prescribed behaviour like in the other browsers: only the LI's and the H4, no color being declared, should become red. I haven't yet read through this, but since Oper 5.11 now does the same as all other browsers, I suppose it's correct.

    A test H4

    Contents