Posted by ZeldorBlat on 02/17/06 17:14
Shelly wrote:
> "ZeldorBlat" <zeldorblat@gmail.com> wrote in message
> news:1140123120.897872.275040@z14g2000cwz.googlegroups.com...
> > HTML style:
> > <input type="checkbox" name="foo" disabled>
> >
> > XHTML style:
> > <input type="checkbox" name="foo" disabled="disabled"/>
> >
>
> The "disabled" worked. What is that trailing slash for?
XHTML compliance. In XHTML, all tags must have matching closing tags.
Some tags are "self-closing" however (like <input>) so instead of a
</input> you just leave a trailing / to close it.
[Back to original message]
|