[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Offtopic: html gurus ... is <br /> valid ?



> A <br> tag has no end tag, so it doesn't need <br>...</br>, and the SGML
> shorthand <br>..</> wouldn't be legal... 

> Ouch, just noticed </li>'s.  Those aren't needed either are they? There
> isn't even an environment for the <li> tags!

You're looking at XHTML - HTML redefined in XML. In XML all tags must have
end tags.

<br/> or <br /> is shorthand for <br></br>, but <br /> is used so browsers
recognise the tag. They should see the '/' on its own as an unknow attribute,
and ignore it.

Regards,
Rob.

Attachment: pgprgyQyLhrUt.pgp
Description: PGP signature


Reply to: