You are here: Re: <br /> in html 4 « HTML « IT news, forums, messages
Re: <br /> in html 4

Posted by David Dorward on 07/19/05 00:31

Robert Frost-Bridges wrote:

> Following a suggestion in another thread to investigate the php function
> nl2br() I have been able to format content inputted via a textarea into
> separate paragraphs (well line breaks anyway). These line breaks however
> are the xhtml <br /> (which they are supposed to be) but the page is html
> 4.01. If I validate it however it checks out fine but I'm not sure why? Is
> <br /> ok to use then?

Short version: No

Longer version: It means the same as <br>&gt; - and some browsers do render
it as such.

Long version: http://www.cs.tut.fi/~jkorpela/html/empty.html

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация