CodePen

HTML

            
              <h1>
  <a href="#">Funny Link</a>
  <a href="#">Funny Link</a>
  <a href="#">Funny Link</a>
  <a href="#">Funny Link</a>
  <a href="#">Funny Link</a>
  <a href="#">Funny Link</a>
</h1>

<a href="#">Styled Link</a>
<a href="#">Styled Link</a>
<a href="#">Styled Link</a>
<a href="#">Styled Link</a>
<a href="#">Styled Link</a>
<a href="#">Styled Link</a>

<div>
  <a href="#">Some More Linkage</a>
  <a href="#">Some More Linkage</a>
  <a href="#">Some More Linkage</a>
</div>
            
          
!
via HTML Inspector

CSS

            
              /* Select every anchor tag except when preceded by an h1 tag */

a {
  background:red;
}

h1 ~ a {
  background:orange;
}

div > a {
  background:green;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................