Hi I am trying to add more than one class whilst echoing some html but it Just does not seem to work. the PHP looks like the following:
echo
"<div class="."alert alert-success"." role="."alert".">
<strong>Well done!</strong> You successfully read this important alert message.
</div>";
the output looks like this (captured using dev tools on chrome):
<div class="alert" alert-success="" role="alert">
<strong>Well done!</strong> You successfully read this important alert message.
</div>
It has autofilled the ="" on the alert-success but it looks like this officially
<div class="alert" alert-success role="alert">
<strong>Well done!</strong> You successfully read this important alert message.
</div>
For some reason the alert-success class appears to be put in after the brackets. I have tried moving around the " but it remains in the same place. is there something simple I am missing.