My code:
    <?php
    session_start();
    
    $_SESSION["favcolor"] = "green";
    ?>
<html>
    
    
  <head>
    <link rel="stylesheet" href="style.css">
    <meta charset="utf-8">
    <title>Login | NeonBLOX</title>
    
   charset stuff
  </head>
  <body>
    
    <?php
    
       $_SESSION["favcolor"] = "green";
    
    ?>
    
    <div class="ib2">
       top stuff
    </div>
    
    <div class="ib">
        form stuff
    </div>
    
  </body>
</html>
Why does it error Warning: session_start(): Cannot start session when headers already sent in (...) on line 2? I'm trying to test session stuff with my current site, so I can make it so I send information that is preset to another web page, but it gives me this error before I even log in.
 
     
    