Span with if- urgent!

Sorry, i mistyped sth:

'Var a: <span class=" ’

  • (a > 10 ? ‘red’ : ‘blue’)
  • ’ ">’
  • a
  • ‘’

Meaning:
Var a: a

many thanks all I still have to sleep it over!!!
I ment to do sth with “if …statement” but I was missing right “(”, “)”, " ’ that is it!!!
MANY THANKS!!!

A) This blew up, real quick.

B) I’m not going to help anyone with their homework, anymore.

C) OP was getting information from w3schools. OP should look at w3fools and never use anything from w3schools, again.

:slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.