I want to run the following code
echo "<html>
<head>
<style type="text/css">
p {color: white; }
body {background-color: black; }
</style>
</head>
<body>
<p>White text on a black background!</p>
</body>
</html>";
}
but this code don’t run.However,when i run
echo "<html>
<head>
</head>
<body>
<p>White text on a black background!</p>
</body>
</html>";
}
the code runs well and
White text on a black background!
gets displayed.Am i including the internal css the right way?.
Thanks.
You need to add a slash before your double quotes
Or use single quotes so they don’t interfear with your HTML quotes;
Or just dont use PHP?