<div class="selector selector_five">
  <h2>[attr^=value]</h2>
  <img src="//placehold.it/150/184/abstract" alt="artistic pattern">
  <img src="//placehold.it/150/184/food" alt="a healthy meal art">
  <img src="//placehold.it/150/184/sports" alt="Arthur Miller">
</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 */
img[alt^="art"] {
  /* alt attribute starts with the value "art" */
  border: 3px solid #e18728;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.