English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I don't understand what Pseudo Classes are. Can someone please explain this to me at a very low level or as if you were talking to a retard? Thanks in advance.

2007-05-02 01:37:10 · 4 answers · asked by jack 6 in Computers & Internet Programming & Design

4 answers

Pseudo-class is essentially "naming" a class of elements by describing them. Remember that the definition of a class is a collection of objects with some common attribute or classification. So, normal classes are named - their common attribute is the class name itself. A pseudo-class is a class of objects that are grouped together by some other kind of attribute. For example, elements that are being hovered over can be selected by element:hover (usually a:hover). You are describing a class of elements by some attribute besides the class name. Pseudo-classes generally match attributes like behavior (such as :hover), element state (such as :visited), and position within the document tree (such as first-child).

2007-05-02 01:58:51 · answer #1 · answered by Rex M 6 · 1 0

Pseudo classes are something like addtions to the class. Mainly used with the < a > tag, indeed. Although there are other pseudo classes, they are poorly, if at all supported by one of the major web browsers cough-IE-cough!

2007-05-02 02:11:50 · answer #2 · answered by jsolisre 1 · 0 1

Special classes that are available to add formatting rules to HTML tags.
By the looks of it this is only used for hyperlinks( tag).

2007-05-02 02:00:28 · answer #3 · answered by AnalProgrammer 7 · 0 1

A very simple and easy explanation can be found here with several examples:
http://www.w3schools.com/css/css_pseudo_classes.asp

2007-05-02 02:45:19 · answer #4 · answered by DianeD 4 · 0 1

fedest.com, questions and answers