Span in echo statement

please i tried to span a line in echo statement but its not working

echo'<span style="font-color: red;">Your passwords do not match!</span>';

please help have a look.

tried this and it worked
style=“font-color: red;”

Hi,

I’m not sure I understand this thread because you say its working now but that’s what you had in the first post anyway :slight_smile:

You would be better off adding a class instead of an inline style anyway and then you don’t have to change the php if you want the color changed at a later date,

thanks paul will do that, but was just surprised why it took
style=“color: red;”

over
style=“font-color: red;”

There is no property called font-color its called “color” :slight_smile:

However that’s not what you said in your second post lol;)