I was writing some selectors but it didn't work for me.
HTML code :
<h2 rel="singer-connector-cricketer">Shoaib Chikate</h2>
<h2 rel="dancer-build-tester">Ashok Dongare</h2>
CSS code:
h2[rel|="connector"]{
color:blue;
}
Similarly another :matches() selector is also not working although I'm using higher version of chrome (Version 32.0.1700.77).
HTML code:
<div id="matcher">
<p>Matched</p>
<h1>Not</h1>
<h2>Matched</h2>
<h3>Not</h3>
</div>
CSS Code:
#matcher :matches(p,h2){
color:purple;
}
How this selectors will work?