Question:
what does \r\n means related to html?
anonymous
2006-05-01 10:24:12 UTC
what does \r\n means related to html or http header?
Connection: Keep-Alive\r\n
Content-Type: text/html\r\n
\r\n

Thanks in advance
Five answers:
r_ranjith
2006-05-01 10:39:11 UTC
\r\n stands for Return and Newline (Displays the following in next line). But it is not Part of HTML. It is a part of scripting language such as ASP or PHP
sheeple_rancher
2006-05-01 10:56:06 UTC
\r means "carriage return"

\n means "line feed"

Both (or either) signify an end-of-line.



The characters should never appear like that except inside a script listing (php, asp, java, javascript). If you saw it in a normal web page using "view source", in means somebody has a bug in their code.
once4ever
2006-05-01 10:28:28 UTC
it means next line

like as

in html code.

when you use "line1\r\nline2" it means that:

line1

line2

raghu_yella2000
2006-05-01 10:34:23 UTC
that is equal to enter button value =2
anonymous
2006-05-01 12:57:14 UTC
you see those in javascript to


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...