如何将.css文件应用于以下PHP代码:[关闭]

Is there a way to add a css file to the following php code:

<?php            
   echo "<a href=logout.php>Logout</a>";   
?>  
<?php  
      echo '<link href="stylesheet.css" rel="stylesheet" type="text/css" />';
      echo "<a id='logout' href='logout.php'>Logout</a>";   
 ?>

in stylesheet.css:

#logout{color:green;font-size:.7em;border:1px solid black;} 

Same way you would add it if it were html.

You can actually context switch within PHP. Consider the following

<style type="text/css">
  a {
    color: red;
  }
</style>

<?php  
  echo '<a href="logout.php">Logout</a>';   
?>  

Sounds like you want inline CSS, e.g.:

<p style="background: blue; color: white;">A new background and font color with inline CSS</p>