FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Question about new lines
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Question about new lines [message #175496 is a reply to message #175489] Sun, 02 October 2011 19:08 Go to previous messageGo to previous message
Denis McMahon is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: comparing dates?
Next Topic: hai
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 06:29:55 GMT 2024

Total time taken to generate the page: 0.03274 seconds