A couple of quick questions I would love to get some help on with please. Trying to validate my website and get rid of the errors and a few have me stumped. URL: http://www.vlbo.com I am using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> 1) <script type="text/javascript" src="jscript/images.js"></script> Error: there is no attribute "TYPE". Anybody know how to fix this? 2) <span style="font-weight: 700"> Error: element "SPAN" undefined. What about fixing this one? Any help would be much appreciated.
Why in hell are you using html 3.2? It was superseded by html 4 in 1999—7½ years ago. The web's just barely 10 years old. Many of the attributes you used didn't exist in 3.2. Since you use an outmoded, deprecated set of elements and attributes, use the html 4.01 DTD <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Code (markup): When you revalidate against the more appropriate DTD, just go down the list, and fix things one at a time. You may not be able to get fully valid without a whole bunch of trouble, because you're using a table layout, which is poorly structured and non-semantic. cheers, gary
Thanks for the info, when I update it to 4.01 DTD it messes up the entire design of my website. How do I go about now fixing all of that? Most of this was designed in frontpage.
Ok, I suggest fall back to 3.2 and use only these tags: htmlhelp.com/reference/wilbur/list.html *I'm sorry I still can't post live links.
First, I'll assume you're viewing in IE. Using a complete and proper DTD means IE will render in standards mode, where it tries to follow the rendering rules. This is something you want, a Good Thing. Second, using Frontpage, especially an apparently old version, is a Bad Thing, due to the crap for code it generates. Third, all development should depend on Firefox as the primary test bed. Using hacks, work-arounds and dumbing down for IE is fairly trivial when you start with a base of good code. Going the other way is ridiculously difficult. Since you have a working page, don't mess with it. Make a copy of it, all the graphics and scripts, and put them in a separate directory tree. Do all your cleaning up on these working copies. When you have everything fixed, you can replace the originals with the now-valid page(s). cheers, gary