I'm trying to display the following and I have a css code for it but it doesn't work. Any help would be appreciated.
HTML/PHP
$var = "Hello World";
echo '<p>' . 'the value of the variable is : ' . $var . '</p>';
CSS
p
{
text-align: center;
color: red;
}
Thanks for your help
$var = "Hello World"; ?> <p>the value of the variable is : <?= $var ?></p>