Tag Archives: Linefeed

Line break using php

Is there much difference in implementing < br> and \n at the end of an indicate statement. The simplest way to explain it truly is to test the item out. Run this test… telephone this " experiment. php"… PHP: < phpecho  “< div  id=’test’> this  is  a  test< /div> \n”; echo  “< div  id=’test’> this  is  a  test< /div> \n”; echo  “< div  id=’test’> this  is  a  test< /div> \n”; echo  “< div  id=’test’> this  is  a  test< /div> < br> “; echo  “< div  id=’test’> this  is  a  test< /div> < br> “; echo  “< div  id=’test’> this  is  a  test< /div> < br> “; > Now view this HTML source (on your browser) in the resulting script: < div id=’test’> that is the test< /div> < div id=’test’> that is the test< /div> < div id=’test’> that is the test< /div> < div id=’test’> that is the test< /div> < br> < div id=’test’> that is the test< /div> < br> < div id=’test’> that is the test< /div> < br> The \n is often a " literal" linefeed for any actual HTML, also it reflects that inside the output. That < br> outputs the linefeed to the … Continue reading

Posted in Web Design | Tagged , , , , , , , , | Leave a comment