Home » CSS Pseudo Classes/Elements

CSS Pseudo Classes/Elements

All CSS Pseudo Classes/Elements

 Selector  Example  Example description
 :link  a:link  Selects all unvisited links
 :visited  a:visited  Selects all visited links
 :active  a:active  Selects the active link
 :hover  a:hover  Selects links on mouse over
 :focus  input:focus  Selects the input element which has focus
 :first-letter  p:first-letter  Selects the first letter of every <p> element
 :first-line  p:first-line  Selects the first line of every <p> element
 :first-child  p:first-child  Selects every <p> elements that is the first child of its parent
 :before  p:before  Insert content before every <p> element
 :after  p:after  Insert content after every <p> element
 :lang(language)  p:lang(it)  Selects every <p> element with a lang attribute value starting with “it”

Table from http://www.w3schools.com/

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© CoolBook.Info : The Learning of Website Development