In an HTML document, Universal CSS Selectors use an asterisk (*) to matche a single element of any type. Omitting the asterisk with simple selectors has the same effect. For instance, *.warning and .warning are considered equal.


      <style type="text/css">
         *.class1 {
         *#id1 {
         *.green {
     <p class="class1">
        <span id="id1">Blue text</span> followed by red text.
     <p id="id1">
        <span class="class1">Red text</span> followed by blue text.
     <p class="green">
        <span class="class1">Red text,</span> <span id="id1">then blue,</span> 
        followed by green.

See Also

CSS Selectors

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.