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

Posted by Chris Hope on 05/27/06 00:23

ZeldorBlat wrote:

>
> Martin Jay wrote:
>> In message <b7898$447749c4$40cba7b4$6132@NAXS.COM>, Jonathan N.
>> Little <lws4art@centralva.net> writes
>> >ZeldorBlat wrote:
>> ><snip>
>> >> for that matter). So they have the concept of a "self-closing
>> >> tag," which is what the <br/> is.
>>
>> >Actually I believe the there should be a space *before* the closing
>> >part of tag <br /> and not <br/>
>>
>>
>> Yes there should.
>>
>> I didn't realise the original poster had left the space out: one of
>> the disadvantages of using a proportional spaced font I suppose. :(
>> --
>> Martin Jay
>> Phone/SMS: +44 7740 191877
>> Fax: +44 870 915 2124
>
> I don't think it matters:
> <http://www.w3.org/TR/REC-xml/#sec-starttags>
>
> and an example without the space:
> <http://www.w3.org/TR/xhtml1/#h-4.6>

It matters for backward compatibilty. Some older browsers or other
parsers may not realise <br/> is the same as <br> but are ok with
<br />

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

 

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

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