You are here: Re: Why use a /> at the end of a statement? « HTML « IT news, forums, messages
Re: Why use a /> at the end of a statement?

Posted by Mike Barnard on 03/04/07 11:02

On Sat, 03 Mar 2007 19:22:31 +0100, "J.O. Aho" <user@example.net>
wrote:

>Mike Barnard wrote:
>
>> I have been examining the code of a site and often, not always, there
>> is a slash before the end of a statement.
>> <br class="clear" />
>> Why is it needed, if it is needed, and what is it good for? I
>> understand </p> </h1> etc but why a /> alone?
>
>As mbstevens already pointed out, it's xhtml, just keep in mind to not use
>that in html, so if you copy something from an xhtml source to use on your
>html page, remove those '/' in the end of the tags, or else it can be a bit
>"random" what may happen in a browser.

Belive it or not, I don't 'copy' source. :) But I'm trying to
understand why people do what they do. Thanks for the input.

 

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

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