<!DOCTYPE html>
<body>
  <p>First</p>
  <p>
    <style scoped>
      p { color: green }
    </style>
    Second
  </p>
  <p>Third</p>
  <style>
    body p { color: blue }
  </style>
</body>