The following table provides a summary of selector syntax indicating usage and the version of CSS that introduced it. ![]() m圜lass which applies to div elements of class m圜lass. Multiple selectors may be joined in a spaced list to specify elements by location, element type, id, class, or any combination thereof. Selectors may be combined in many ways to achieve great specificity and flexibility. Note the double-colon notation for pseudo-elements versus single-colon notation for pseudo-class. A pseudo-class classifies document elements, such as : link or : visited, whereas a pseudo-element makes a selection that may consist of partial elements, such as :: first-line or :: first-letter. It is appended to a selector as in a : hover or # elementid : hover. One example of a widely used pseudo-class is : hover, which identifies content only when the user "points to" the visible element, usually by holding the mouse cursor over it. Pseudo-classes are used in CSS selectors to permit formatting based on information that is not contained in the document tree. An ID may only be applied to a single element. A class may apply to any number of instances of any element. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |