You can use ending tags in HTML 4.01. It helps for DOM reasons to know where an element begins and ends.
On Jul 20, 10:29 am, son <sco0...@yahoo.com> wrote: > Rob, > > Thanks. I have used the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 > Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> since I have deprecated > elements. > > I have a question for everyone. Supposedly for HTML 4.01, the ending > of an input tag is simply > but in w3school it show />. > It does work either way, but which one is corrrect by syntax? > > Should ending tags matter in terms of it may or may not be rendered by > the browser correctly? > > Son > > On Jul 18, 8:14 pm, RobG <robg...@gmail.com> wrote: > > > On Jul 18, 9:40 am, son <sco0...@yahoo.com> wrote: > > > > Thank you Rob. > > > > I can't remember what make me use the XHTML doctype, I thought I had > > > some problem with running some jquery stuff, but not sure. > > > > what is the ideal doctype the will work well with JQuery? > > > jQuery is irrelevant, the best (and only) DOCTYPE to use on the web is > > HTML 4.01 strict. You may use others for specific purposes, but they > > are not suitable for a general web site. > > > The vast majority if web sites using an XHTML DOCTYPE are served as > > HTML because about 70% of web users are using IE, which does not > > understand XHTML. > > > <URL:http://hixie.ch/advocacy/xhtml> > > > -- > > Rob