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