Pages

Wednesday 27 November 2013

Difference between Line Feed (&lf;) and Carriage Return (&cr;) and Carriage Return-Line Feed (&crlf;)



we have two different options to get new line, Now the question that arises is – why we have two options for single operation? The reason is simple

Different operating systems have a different way of understanding new line. Mac only 
 understands Carriage Return as new line, while Unix and Linux understand Line Feed as new line character. Our favorite OS windows needs both the characters together to interpret as new line, which is Carriage Return-Line Feed (&crlf;)

1 comment: