Q:

How and When can I use < or >?

I'm fairly new to Javascript, and just now learned about &lt and &gt. I don't how to use them or how they would look like in javascript. Can you give me an example? And is it better to use it than < or >?

A:

&lt; and &gt; are HTML representations of the < and > characters. You should use them when creating HTML where you want these characters to appear. Otherwise, they are interpreted as syntactic elements by the HTML engine.

