how to add css in php file code example Example: adding css to php file echo "<link rel='stylesheet' type='text/css' href='CSS/main.css'>";