You are on page 1of 1

Category

  Element  Looked  For   CSS  (CSS1-­‐3)  


Tag   Element  <E>  by  relative   E  
reference  
Element  <E>  with   E[A]  
attribute  A  
Element  <E>  with   E[A=’t’]  
attribute  A  containing  text    
‘t’  exactly  
Element  <E>  with   E[A=’t’][B=’v’]  
attribute  A  containing  text  
‘t’  exactly  and  with  
attribute  B  containing  text  
‘v’  exactly  
ID  &  Name   Element  <E>  with  id  I   E#I  
All  Elements  with  id  I   #I  
Element  <E>  with  name  N   E[name=N]  
 
All  Elements  with  name  N   [name=N]  
Class   Element  <E>  with  a  class  C   E.C  
 
All  Elements  with  a  class  C   .C  
Direct  Child   Element  <F>  which  is  a    
direct  child  of  Element     E      >  F  
<E>  
Child  or  subChild   Element  <F>  which  is  a    
child  or  a  subchild  of   E    F  
Element  <E>  
 

You might also like