Matches any E element whose "attr" attribute value is a list of hyphen-separated values, the first being exactly equal to "name".
<p>Lorem ipsum dolor sit amet, consectetur</p>
<p class="second-paragraph">Lorem ipsum dolor sit amet, consefctetur</p>
p{font-style:normal}
p[class|="second"]{font-style:italic}
Lorem ipsum dolor sit amet, consectetur
Lorem ipsum dolor sit amet, consectetur
In the example, the second paragraph should be set in italics.