Thanks Imar.
Rod
-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: Thursday, 6 February 2003 3:44 PM
To: HTML Code Clinic
Subject: [html_code_clinic] Re: What's the best way to close empty tags
Nope. <br/> is valid markup. However, older browser may not recognize
<br/>
as a valid <br> tag. That's why you often see the additional space.
Older (and newer for that matter) browsers ignore tags and attributes
they
don't recognize. So, when parsing the html, the browser will recognize
the
<br> tag, then notice an illegal attribute / and skip that so the end
result is an ordinary <br>.
Cheers,
Imar
At 03:41 PM 2/6/2003 +0800, you wrote:
>Is there a difference between <br/> and <br /> as far as complience is
>concerned??
>
>Rod
>
>-----Original Message-----
>From: Imar Spaanjaars [mailto:Imar@S...]
>Sent: Thursday, 6 February 2003 3:28 PM
>To: HTML Code Clinic
>Subject: [html_code_clinic] Re: What's the best way to close empty tags
>
>This is not completely true. The second option (<br />) complies with
valid
>XML markup so complies with XHTML as well.
>
>Cheers,
>
>Imar
>
>
>At 12:23 PM 2/6/2003 +0800, you wrote:
> >Just my opinion, use the first one to comply xhtml or
> >xml format in future.
> >-sc
> >
> > --- Tim Trepanier <ttrepanier@n...>
> >=AA=BA=B6l=A5=F3=A4=BA=AEe=A1G> I keep reading that's it's best to
close
> >all tags,
> > > including empty ones.
> > > But i've seen this done in different ways. What's
> > > the best or official
> > > way?
> > >
> > > Here are some samples, of closing an empty tag,
> > > using the br element but
> > > others element including <img>, and <hr> also apply:
> > >
> > > 1. <br></br>
> > > 2. <br />
> > > 3. <br>
>
>
>
>