Re: Why use a /> at the end of a statement?
- From: mbstevens <NOXwebmasterx@xxxxxxxxxxxxxxx>
- Date: Sat, 03 Mar 2007 18:15:03 GMT
On Sat, 03 Mar 2007 17:36:28 +0000, Mike Barnard wrote:
Hi.
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" />
<img src="images/icon_burdick.gif" width="81" height="30"
alt="Burdick" />
<br /><br />
<img src="images/title_latestnews.gif" width="253" height="55"
alt="Latest News" />
Why is it needed, if it is needed, and what is it good for? I
understand </p> </h1> etc but why a /> alone?
I'm sure it'll be obvious when its pointed out to me! Thanks.
It is an XHTML thing. This part of this article should get you
started understanding what's going on:
http://www.w3.org/TR/xhtml1/#h-4.3
.
- Follow-Ups:
- Re: Why use a /> at the end of a statement?
- From: Mike Barnard
- Re: Why use a /> at the end of a statement?
- References:
- Why use a /> at the end of a statement?
- From: Mike Barnard
- Why use a /> at the end of a statement?
- Prev by Date: "span.webdeveloper-div-order {" Whats this?
- Next by Date: Re: Why use a /> at the end of a statement?
- Previous by thread: Why use a /> at the end of a statement?
- Next by thread: Re: Why use a /> at the end of a statement?
- Index(es):