This page is not Valid XHTML 1.0 Transitional!

Discussion in 'HTML & Website Design' started by RemyXO, Jul 9, 2008.

  1. #1

    I don't understand what is wrong. It's just a rollover image. How are they not valid? They even have "onLoad" as invalid.. . does this mean they don't accept java as valid?

     
    RemyXO, Jul 9, 2008 IP
  2. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    chopsticks, Jul 9, 2008 IP
  3. RemyXO

    RemyXO Peon

    Messages:
    176
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I can't put "onLoad" in css right? Because thats the error that is coming up at the moment and I am not too sure how to fix this.


     
    RemyXO, Jul 9, 2008 IP
  4. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Change it to onload= instead of onLoad=, and try again.
     
    chopsticks, Jul 9, 2008 IP
  5. RemyXO

    RemyXO Peon

    Messages:
    176
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Wow, you was right. I do find it stange that even for html icase has an different effect on it. Damn Dreamweaver! lol
    Thanks for clearing that up for me.
     
    RemyXO, Jul 9, 2008 IP
  6. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #6
    Yes, Dreamweaver is notorious for that. Not that bgcolor="" is also not a real attribute and should be done in CSS, although a tranny doctype may get away with this. As for the casing, xHTML tags and attributes MUST be in lowercase.
     
    blueparukia, Jul 9, 2008 IP
  7. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #7
    I always had the issue before when working with xhtml as alot of the code contained uppercase letters in it. Nowadays I do it all in lowercase and rarely get any errors.

    Such errors also is another reason I prefer to just use Notepad over Dreamweaver or any other programs like it.
     
    chopsticks, Jul 9, 2008 IP
  8. RemyXO

    RemyXO Peon

    Messages:
    176
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I learn something new here everyday lol, thanks!
     
    RemyXO, Jul 9, 2008 IP
  9. RemyXO

    RemyXO Peon

    Messages:
    176
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Any idea why this is not valid? It's the same code as the first post. It's just the closing of the body tag.
     
    RemyXO, Jul 9, 2008 IP
  10. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #10
    I have ideas, but I'll need to see a link to the site.
     
    blueparukia, Jul 9, 2008 IP
  11. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yeah, we need to see it... what's before that closing tag, what's after, maybe even what's going on with the opening body tag.

    If you know the rules of HTML then the errors are easier to figure out.
     
    Stomme poes, Jul 9, 2008 IP
  12. RemyXO

    RemyXO Peon

    Messages:
    176
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Sorry about the delay, my hosting was giving me a really hard time. I was updating my files via FTP and didn't back any of the changes. Right after I made my last post, my FTP folder was empty. I went to live support and asked if there was something wrong with the severs, but he said there was nothing wrong. I asked what happened to all my files and he said he does not know. He said someone must of had my password. I a sured him this was not the case and that someone on their side must had reseted my account by mistake. I asked him to check the logs, he said he did and there was none.

    He said no one reseted my account from their side and accused me stating that I requested to reset the account and then assumed I made a mistake and that I was blaming them to get undo it.

    After about 30 mins of auguring with him, I checked my cpanel and it showed my settings was there, but no files, then 5 mins after that files started to show, but not in the FTP. After I told him he was silent for about 3 mins, then came back to tell me he was sorry that he had made a mistake due to the long conversation i had with him and that they was moving my account to a different sever. Clearly he didn't even bother checking and just blamed it on me earler. The second he apologzed he cleared the chat, so I was not able to copy it. Whatever, I guess. So I started backing up my files and now im back.

    Anyway, the site is lozt.com Thanks for looking in to this for me.
     
    RemyXO, Jul 9, 2008 IP
  13. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #13
    There are two opening <body> tags, that doesn't make sense. Choose which one you want and delete the other.

    Make sure that you move the <div> and <script> tags to within the body if you choose to remove the second tag.


    ** You also seem to have two closing </body> tags, that's not valid either, so one needs to be removed.
     
    nicangeli, Jul 9, 2008 IP
  14. RemyXO

    RemyXO Peon

    Messages:
    176
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I am not too sure what to do about this because the first body is in the overall header, and the second body preloads images only for the index page. If I add the preload in the overall header's body, wouldnt that slow down the other loading pages since it does not have them images linked?

    Or is there a way to use the onload without the body tag?
     
    RemyXO, Jul 9, 2008 IP
  15. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #15
    It probably wouldn't matter, so you might as well get rid of one of them and if it's the second move the pre-load stuff elsewhere.

    Whats going on here?
    </body>
    
    </html></body>
    </html>
    Code (markup):
     
    chopsticks, Jul 9, 2008 IP
  16. RemyXO

    RemyXO Peon

    Messages:
    176
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #16
    its was from the dreamweaver tags, ill fix that, but where can i move the preload? i thought its required to used with a body tag?
     
    RemyXO, Jul 9, 2008 IP
  17. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #17
    It is, so stick it in the body tag you are using, so there is only one.

    And get rid of bgcolor="#ffffff" - no point to it.
     
    blueparukia, Jul 9, 2008 IP
  18. RemyXO

    RemyXO Peon

    Messages:
    176
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #18
    I'm not sure why that bgcolor was there, but its removed. This is actually the first time I ever tired to clean up the html codes to make them all valid. More work then I expected lol.
     
    RemyXO, Jul 9, 2008 IP
  19. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #19
    Which is why you get rid of Dreamweaver and write it properly the first time.

    As for your question:

    <img src="images_sliced/spacer.gif" width="1" height="72" alt="">
    Code (markup):
    Should become:
    <img src="images_sliced/spacer.gif" width="1" height="72" alt="" />
    Code (markup):
    And shit....sliced images, tables. Chuck your entire code out and pay someone else to do it properly.

    You should not need tables, you definitely do not need space images. Do NOT ever, ever, ever use Dreamweaver, Fireworsk and Photoshop/Imageready to export a design. It causes more trouble than anything.

    Seriously, throw it out.

    People who keep saying Dreamweaver is good - well look at his code and try to argue with me now.
     
    blueparukia, Jul 9, 2008 IP
  20. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #20
    You could use Fireworks to export your design, but never use it to export the design as a whole. Just use it to export parts of it you wish to use in your tableless design. It may seem like a waste of time at first, but once you look into coding correctly you'll never look back.
     
    chopsticks, Jul 9, 2008 IP