Pseudo-classes in CSS used to define special state of element - HTML

Q.  Pseudo-classes in CSS ________.
- Published on 19 Oct 15

a. match a specified element
b. select the active links
c. are used to define a special state of an element
d. are used to select all the visited links

ANSWER: are used to define a special state of an element
 

    Discussion

  • Nirja Shah   -Posted on 05 Nov 15
    - A pseudo-class is used to define a special state of an element.

    - Some of the examples of where a pseudo-class can be used are:
    1. Style an element when a user mouses over it
    2. Style visited and unvisited links differently

    - Syntax
    selector:pseudo-class {
    property:value;
    }

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)