ketotal=0; // add this
If you want to show "<", you will have to type "& lt;". (without space in between)
If you want to show ">", you will have to type "& gt;".
Because you can use html code directly (while normal user can not), so the system will interprete "<" as part of html code.