You are here: Re: "<br>" v "<br\>" « All PHP « IT news, forums, messages
Re: "<br>" v "<br\>"

Posted by Rik on 05/26/06 15:30

MS wrote:
> Why do people use "<br/>" when outputting a string?
>
> the "<br>" seems to work !!
>
> are there any benefits of using the escape ? and why would it not be
> "\<br\>"?

"\<br\>" is nonsense
"<br />" is XHTML as indicated earlier

The / isn't an escape in that case, but correct code to ('self-')close the
opened br tag.

Grtz,
--
Rik Wasmus

 

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

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