1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Validation problem

Discussion in 'HTML & Website Design' started by kojakfilth, Feb 8, 2007.

  1. #1
    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!"

    http://validator.w3.org/check?uri=www.medicalnursingbusiness.com

    How can i get rid of that error.???
    SEMrush
    Please advice..
     
    kojakfilth, Feb 8, 2007 IP
    SEMrush
  2. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Following are solutions, please fix your code a/c to following line and your page will be validated

    ERROR 1:
    *******
    Valid Code:
    <td width="76%" style="border-color:#FFFFFF;"><span class="style10">How to start a n
    Code (markup):

    ERROR 2 and 3:
    ***********
    All you have to do, is to add alt attribute in <img> tag.
    For example:
    ...g/left.jpg" width="165" height="21" [B]alt="myimage"[/B] />
    Code (markup):
    ERROR 4:
    *******
    Error Line 156 column 47: there is no attribute "background".
    Invalid Code:
    Valid Code:
    ...d width="68%" colspan="3" style="background:url(medical-nursing/background.jpg);" bgcolor
    Code (markup):
    ERROR 5:
    *******
    Error Line 156 column 124: there is no attribute "height".
    Invalid Code:
    Valid Code:
    ...="#FFFFFF"><table width="810" style="height:453px;" border="0" cellpadding="0" cellspa
    Code (markup):
    ERROR 6:
    *******
    Error Line 180 column 44: end tag for element "p" which is not open.
    Invalid Code:
    Valid Code:
    <td width="1%" bgcolor="#FFFFFF"></td></tr>
    Code (markup):
    ERROR 7:
    *******
    To fix this error, move the <script></script> tag just before you are starting body tags, like.

    <html>
    <head>
    <title>My page</title>
    <script>___________________</script>
    </head>
    <body>
    ___________________
    Code (markup):

    If you still have problems please let me know, and if you found this post helpful please add it to my Reputation :)

    Thanks
     
    designcode, Feb 8, 2007 IP
  3. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #3
    It took me just under an hour, but I finally did it:

    Here is part 1, its too long to fit in the 1 post
     
    rochow, Feb 8, 2007 IP
  4. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #4
    Part 2:

    Valid xhtml & css :)
     
    rochow, Feb 8, 2007 IP
  5. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #5
    kojakfilth, Feb 8, 2007 IP
  6. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #6
    me or designcode?
     
    rochow, Feb 8, 2007 IP
  7. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #7
    rochow you. coz i just copy paste your post and did work.. please...

    designcode work also good.. i want to learn guys..
     
    kojakfilth, Feb 8, 2007 IP
  8. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #8
    My book will be released in about 2 weeks

    How to code in xhtml and css

    Also will have a chapter on how to validate pages
     
    rochow, Feb 8, 2007 IP
  9. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #9
    Thanks clyde66, actually I don't give you whole code, I just give you hints :) next time I will try to give full code :)
     
    designcode, Feb 8, 2007 IP
    kk5st and rochow like this.
  10. kk5st

    kk5st Prominent Member

    Messages:
    3,499
    Likes Received:
    377
    Best Answers:
    29
    Trophy Points:
    335
    #10
    Please don't. :)

    cheers,

    gary
     
    kk5st, Feb 9, 2007 IP
  11. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #11
    y kk5st? :)
     
    designcode, Feb 9, 2007 IP
  12. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #12
    WTF........
     
    rochow, Feb 9, 2007 IP
  13. kk5st

    kk5st Prominent Member

    Messages:
    3,499
    Likes Received:
    377
    Best Answers:
    29
    Trophy Points:
    335
    #13
    Because there is no point. You did a good job dealing with each error.

    cheers,

    gary
     
    kk5st, Feb 9, 2007 IP
  14. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #14
    Oh, I mean next time, I will give full code :D not now :)
     
    designcode, Feb 9, 2007 IP
  15. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #15
    Giving the OP the full code will make it a lot easier for them. They would have used the validate function and couldn't figure it out, which is why they posted here and asked for help
     
    rochow, Feb 9, 2007 IP
    kojakfilth likes this.
  16. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #16
    Yes rochow you are right, providing full code will help newbies very much.
     
    designcode, Feb 9, 2007 IP
  17. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #17
    yes youre right designcode and rochow.. you are helping a lot of newbies like me..

    Will give you green reputation guys.. :)
     
    kojakfilth, Feb 9, 2007 IP
  18. kk5st

    kk5st Prominent Member

    Messages:
    3,499
    Likes Received:
    377
    Best Answers:
    29
    Trophy Points:
    335
    #18
    I, too, meant next time.

    cheers,

    gary
     
    kk5st, Feb 9, 2007 IP
  19. kk5st

    kk5st Prominent Member

    Messages:
    3,499
    Likes Received:
    377
    Best Answers:
    29
    Trophy Points:
    335
    #19
    In the long run, it is counter productive; it is like the old saw, "give a man a fish, and he eats for a day, teach him to fish, and he eats forever". Giving the OP the corrected code does nothing to help him understand and fix the next batch of errors. Showing him what each error message means, and how to fix it will help him to not only understand the validator, but will help him avoid the error in the first place. That's a lot more helpful than just giving him the answer.

    You may believe otherwise, but belief does not replace good forum practice.

    cheers,

    gary
     
    kk5st, Feb 9, 2007 IP