<p>Hey there, I'm a paragraph</p>
<p class="fancy">Hey there, I'm a paragraph with a class!</p>
<div>Hey there, I'm a div.</div>

.fancy {
  text-shadow: 2px 2px 3px gold;
}

/* Target all <p> elements except that have the class .fancy */
p:not(.fancy) {
  color: blue;
}

/* Target all elements except the <p> elements */ 
body :not(p) {
  text-decoration: underline;
}

/* Target all elements except the <div> and <span> elements */
body :not(div):not(span) {
  font-weight: bold;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.