Re: Question about new lines [message #175496 is a reply to message #175489] |
Sun, 02 October 2011 19:08 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Sun, 02 Oct 2011 14:00:27 +0000, Linus Flustillbe wrote:
> I come from a scripting background so am not unfamiliar with the concept
> of CR/LF characters. I am in the process of learning PHP via the
> following tutorial
A web browser considers new lines within the text content of html
documents to be white space, just as it considers spaces and tabs within
the text content of html documents to be white space.
Line breaks are signalled by "<br>" or "<br />" (which you use depends on
the dtd you declare, if you don't declare a dtd use <br>) and paragraphs
are wrapped in "<p></p>". In html, these elements control forced line
breaks.
Carriage returns in the text content of html documents don't generate
line breaks.
If you're using a scripting language such as php to generate
presentational markup such as html, you need to make sure you understand
what correct presentational markup looks like first.
Rgds
Denis McMahon
|
|
|