Click to See Complete Forum and Search --> : xhtml site questions


clarkvan
07-06-2008, 05:27 PM
I have just opened a new site which I had previously validated on a different url... Now it wont validate and I need to know how to fix this...
"

# Error Line 94, Column 86: end tag for "input" omitted, but OMITTAG NO was specified .

…ob.options[ob.selectedIndex].value)">

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
"
What does this mean? I tried to close it with "</input>" The page is "www.killerwallpapers.com/cars.html"

I am also wondering why my host is entering code after I post my pages and the validator is rejecting them (I use yahoo webhosting)

Thanks

Declan1991
07-06-2008, 05:57 PM
<input type="button"
style="background: #aa6666;"
value="Download"
onclick="ob=this.form.myDestination3;window.open(ob.options[ob.selectedIndex].value)" />

They are called self-closing tags. Others are <br />, <img />, <link /> and <meta />. The space is for backwards compatibility (vital, since you are serving the pages as HTML, but using XHTML).

For once, the error was actually quite plainYou may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".They can be a bit verbose sometimes.