On Tue, Jul 14, 2009 at 04:21:21PM +0530, Kapil Hari Paranjape wrote:
> 
> > On Thu, 09 Jul 2009, Anthony DeRobertis wrote:
> > 
> >     <br />
> >     <hr class="endfloat" />
> >     <br class="newline" />
> 
> Could you please clarify why these are XML which is not acceptable
> HTML?

The /> at the end means different things in XML and SGML. In XML, <br />
is just an empty tag. In SGML (which HTML is), it is actually a
shorthand called the null-end-tag, which behaves quite differently. Now,
there aren't many browsers that implement NET correctly (most just
ignore the /), but it still gets quite annoying when you run the page
through the validator.

Technically, if I remember correctly, this:

        <br />Hello, world / goodbye world

means:

        <br>>Hello world </br> goodbye world

which is rather nonsensical...



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to