Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: TOTALLY baffled with !doctype validation

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    37

    TOTALLY baffled with !doctype validation

    For what it's worth, I do my web with Dreamweaver. Nothing spectacular, but HIGHLY functional and very good results in the SE's. Still, I would like to have a solid site that goes through W3 with less than 400 errors.

    To start with, I threw in the html 4.01 strict. Didn't like that.

    Then I tried the transitional. Still didn't like that.

    So, for a novice, what would you recommend I place there?

    Thanks, Mike
    Thank God for the internet.

  2. #2
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073

    Just a few errors really

    The linked site in your signature profile only produced 7 or so errors, so not exactly horrendous! This is based on your current HTML code which is closest in appearance to HTML 4.01 Transitional. Just add the appropriate doctype (example below)
    Code:
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    and follow the W3C's validator recommendations to fix those few errors. The two errors for background can be easily eliminated by adding those stylings to your existing "basic.css" stylesheet. In your navlist div you've got <ul> tags nested incorrectly. Finally, the id "centercontent" has been used twice, when it should only be used for a single occurrence. You might consider changing the "id" to a class instead.

    Paul

  3. #3
    Senior Member wrmineo's Avatar
    Join Date
    Apr 2005
    Posts
    757
    What version of DW are your running? MX2004 has "fixed" the error of simply beginning a doc with <html> - if you're using DW 6.0 this may be fixed by running the update/fix to 6.1.

    I like the 401 transitional doctype that Paul posted for you - it seems more forgiving which is a big plus for me :)
    W. R. Mineo

  4. #4
    Senior Member wrmineo's Avatar
    Join Date
    Apr 2005
    Posts
    757
    Oh...if you're talking about the index page of your site?:

    >> replace "&" with "&amp;" to clear up four of your errors ....

    >> for the js error, in your code view, after ..."javascript" begin typing "type" and you'll get a pop up menu of options in DW

    >> background - Paul already mentioned these. If you can't put in your css right now, simply delete while you're trying to validate - you can always replace with a simple color command in DW that will validate, but not an image

    >> for the UL/LI errors use
    <ul>[*]listed items[/list]

    >> for the align errors - first try to delete and see how if affects the view - guessing it won't and if that's the case simply omit or find one that is acceptable

    >> for your missing alt's you can actually put <empty> in the box in DW, else, in the code put alt=" ", or of course, put in some text

    >> line 218 meta error = this belongs in the <head>

    ! Be sure to choose the "Show Outline" option when you go back to validate = you'll see why :)

    Good Luck and Happy Ranking!
    W. R. Mineo

Similar Threads

  1. Doctype
    By crc200 in forum Graphics & Design Discussion Forum
    Replies: 7
    Last Post: 03-25-2005, 10:26 PM
  2. Doctype Tag
    By Web Gazelle in forum Web Programming Discussion Forum
    Replies: 5
    Last Post: 01-10-2005, 07:17 AM
  3. Baffled? Google vs.Yahoo
    By maddhacker24 in forum Search Engine Optimization Forum
    Replies: 6
    Last Post: 07-09-2004, 11:50 AM
  4. Baffled
    By diamich in forum Google Discussion Forum
    Replies: 3
    Last Post: 05-14-2004, 11:49 AM
  5. Completely baffled, need input...
    By voodooboy in forum Search Engine Optimization Forum
    Replies: 2
    Last Post: 04-01-2004, 02:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •