h1{ font-weight: bold; } :not(h2) a{ color:#00a; } :not(h2) a:hover{ color:#00a; background:#bbb; } :not(h2) a:visited{ color:#500; }