www.webdeveloper.com
Results 1 to 10 of 10

Thread: errors in validation in my new site

  1. #1
    Join Date
    Jul 2006
    Posts
    25

    errors in validation in my new site

    Hi im here again whining about the errors in my site.. http://validator.w3.org/check?uri=ww...ngbusiness.com

    I started this site from scratch in dreamweaver and put a HTML 4.01 Transitional at first it has no errors but when i finished it this errors come out again "This page is not Valid HTML 4.01 Transitional!"

    How can i get rid of that error.???

    Please advice..

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Quote Originally Posted by mason66
    How can i get rid of that error.???
    The errors are all listed below that warning, each one with a link to more information. What more could you need?
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Jul 2006
    Posts
    25
    yes but i dont know whats the correct transitional for my site.. i think that should fix all the errors..

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    You are already using too lax of a standard and should be using HTML 4.01 Strict. The problem is your HTML. You actually have more than the validator is flagging.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    Jul 2006
    Posts
    25
    then how can i fix it..? if theres a tutorial in validating websites please point me there i really want to learn how to calidate a website..
    Let me know if you need a Custom Bot

  6. #6
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    Drop the bordercolor, images require alt="" drop background, drop height, add type to JavaScript have you used the clean-up HTML facility in Dreamweaver based on Tidy? I suspect Dreamweaver is adding nonsense… Yo need to use more CSS too.

    http://www.w3.org/TR/html401/index/elements.html
    http://www.w3.org/TR/html401/index/attributes.html

  7. #7
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Quote Originally Posted by mason66
    then how can i fix it..?
    The validator is telling you exactly what to do if you would bother to read the rest of that page.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  8. #8
    Join Date
    Jul 2006
    Posts
    25
    ok i will try that robert..
    Let me know if you need a Custom Bot

  9. #9
    Join Date
    Oct 2006
    Location
    Colorado Springs
    Posts
    134
    mason,

    the validator isn't saying your page isn't valid due to doctype. it's saying it's coded wrong. scroll down that page and it tell you exactly what's wrong, and sometimes even how to fix it. things like misplaced tags, etc.

    pj
    i made me a website
    www.HookedOnWinter.com

  10. #10
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,208
    You are trying to use deprecated code with a XHTML 1.0 Transitional! document type. Tags like <meta>, <br>, etc tags must be closed. Some attributes are not allow where you are trying to use them. I saw no <html><head> tags after your current document type. No </head> tag before your <body> tag.

    Here are your current warnings:

    HTML Validation Result
    ----------------------
    http://www.medicalnursingbusiness.com/

    line 21 column 1 - Warning: <meta> element not empty or not closed
    line 22 column 1 - Warning: <meta> element not empty or not closed
    line 1 column 165 - Warning: <body> isn't allowed in <head> elements
    line 144 column 25 - Warning: missing <td>
    line 171 column 19 - Warning: <form> isn't allowed in <table> elements
    line 204 column 17 - Warning: replacing <p> by <br>
    line 204 column 17 - Warning: inserting implicit <br>
    line 204 column 17 - Warning: <br> element not empty or not closed
    line 63 column 1 - Warning: <table> proprietary attribute "height"
    line 67 column 7 - Warning: <table> proprietary attribute "height"
    line 71 column 13 - Warning: <table> proprietary attribute "height"
    line 80 column 25 - Warning: <td> proprietary attribute "background"
    line 86 column 25 - Warning: <td> proprietary attribute "background"
    line 92 column 25 - Warning: <td> proprietary attribute "background"
    line 95 column 37 - Warning: <table> proprietary attribute "background"
    line 107 column 21 - Warning: <td> proprietary attribute "background"
    line 170 column 19 - Warning: <p> proprietary attribute "nowrap"
    line 172 column 3 - Warning: <form> escaping malformed URI reference
    line 171 column 19 - Warning: <table> proprietary attribute "bordercolor"
    line 210 column 158 - Warning: <img> lacks "alt" attribute
    line 220 column 160 - Warning: <img> lacks "alt" attribute
    line 468 column 17 - Warning: <table> proprietary attribute "bordercolor"
    line 468 column 17 - Warning: <table> proprietary attribute "height"
    line 226 column 25 - Warning: trimming empty <center>
    line 254 column 66 - Warning: trimming empty <span>
    line 309 column 61 - Warning: trimming empty <span>
    line 345 column 19 - Warning: trimming empty <p>
    line 377 column 94 - Warning: trimming empty <span>

    0 errors / 28 warnings

    Just correcting these with present doc type would be fine.

    Ron

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles