Place all the rules inside of a pair of opening and closing <style> tags, which are then placed inside of the opening and closing <head> tags of the HTML file

<head>
  <style>
    div {
      color: white;
      background-color: black;
    }
 
    p {
      color: red;
    }
  </style>
</head>
<body>
  ...
</body>

Rationale

  • For adding unique styles to a single page of a website

Related: External CSS, Inline CSS