W3C Validation Help Please?

Discussion in 'HTML & Website Design' started by rhwd2003, May 4, 2007.

  1. #1
    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.
     
    rhwd2003, May 4, 2007 IP
  2. Felu

    Felu Peon

    Messages:
    1,680
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could you please link to the page?
     
    Felu, May 4, 2007 IP
  3. Felu

    Felu Peon

    Messages:
    1,680
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Fixed all errors, but post cannot be more than 20000 characters long.
     
    Felu, May 4, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Why in hell are you using html 3.2? It was superseded by html 4 in 1999&#8212;7&#189; 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
     
    kk5st, May 4, 2007 IP
  5. rhwd2003

    rhwd2003 Well-Known Member

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    118
    #5
    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.
     
    rhwd2003, May 5, 2007 IP
  6. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #6
    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. :)
     
    VimF, May 5, 2007 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    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
     
    kk5st, May 5, 2007 IP