<!DOCTYPE html>
<html>
  <head>
    <style>
    div ~ p { color: blue; }
    </style>
    <title>The attribute selector</title>
  </head>
  <body>
    <p>paragraph</p>
    <p>paragraph</p>
    <div>div</div>
    <p>paragraph</p>
    <p>paragraph</p>
    <h2>h2</h2>
    <p>paragraph</p>
    <p>paragraph</p>
  </body>
</html>