<div class=" selector selector_six">
  <h2>[attr$=value]</h2>
  <a href="example.pdf" target="_blank">I'm pdf file😉</a>
  <a href="#internal">hm, I'm a link😒</a>
</div>

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&family=Raleway:wght@200;300;400;500;600;700&display=swap");
* {
  background: #000;
  color: #fff;
  font-size: 1.5rem;
  font-family: "Raleway", sans-serif;
}
h3,
h2 {
  font-size: 3rem;
  background-image: linear-gradient(25deg, #002657, #662b54, #a9264f, #ec004a);
  padding: 1em;
  font-weight: 300;
}
h2 {
  font-size: 2rem;
}

.selector {
  text-align: center;
  padding: 100px 0 0 0;
}
li {
  list-style: none;
}
/* 7 types of selectors */

/* attr$=value */
[href$="pdf"]{
  background: white;
  color: brown;
  text-decoration: none;
  padding: .5em;
  border-radius: 2em;
  display: inline-block;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.