println() prints a newline character at the end of whatever you tell it to print, print() does not. As browsers skip newline characters (unless in pre text) there's not much you'll gain from using it except that the generated html will be easier to read by humans (and maybe some browsers) at the cost of more network traffic.