Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1
    Senior Member DanielOliver's Avatar
    Join Date
    Jun 2003
    Location
    Cornwall, England.
    Posts
    1,202
    Member #
    1879
    I was wondering if it is worth the trouble of going through my source code, tidying it up and so on so that it is fit to be validated by w3.org's validator.

    Is it a good idea or not? Would you or wouldn't you?
    If so what is the best way to go about cleaning your code, because I am currently working on a site and the coding isn't a pretty at the moment.

    Any help would be great,
    Thank you,
    Daniel.

  2.  

  3. #2
    Senior Member DanielOliver's Avatar
    Join Date
    Jun 2003
    Location
    Cornwall, England.
    Posts
    1,202
    Member #
    1879
    Is the best way to go about it just following the errors that the validator has pointed out?
    It's pointing out some things which I do not see anything wrong with, half of the time it is because I am using an element I don't need to, but it is also highlighting things such as
    color="#blabla"
    How can I get around this?

    Thank you,
    Daniel.

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Many HTML attributes have been replaced with CSS in XHTML (a better solution, too).
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  5. #4
    Senior Member DanielOliver's Avatar
    Join Date
    Jun 2003
    Location
    Cornwall, England.
    Posts
    1,202
    Member #
    1879
    So I should assign the properties of the text and headers ect through CSS instead of using the <font....> tag?

  6. #5
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    The entire font tag is deprecated now because everything it can do is done in CSS (and more powerful in CSS).

    I would very strongly recommend switching to a table-less, very-heavy-CSS-reliant design. Yes, it will kill old browsers (good riddance to NS4), but it makes updating the page extremely easy. I finally made my first table-less design, and while not as easy, it sure is a cleaner solution and recommended by the W3C.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  7. #6
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    I agree with filburt on this one. I just designed my first (almost) tableless design at www.lichfieldexplorers.co.uk . It was a bit of hard work to begin with, and the bly tables are to align the images on the image pages, and on the php Calendar, but everything else is CSS & DIVs, much easier to update!
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  8. #7
    Senior Member DanielOliver's Avatar
    Join Date
    Jun 2003
    Location
    Cornwall, England.
    Posts
    1,202
    Member #
    1879
    I have read a lot about designing sites entirly in CSS and was told it was the better solution, so I bought a book which I am currently working my way through which is very good but it's a pain because of all the images that I am using and I am unsure about how to go about aligning and positioning them all.

    As for the validator I have got it down to just 5 errors now. I have attached a screen shot or what it is saying is wrong, I can't see anything wrong with it myself.

    I have a slight idea of what it may be but am not 100% sure
    Attached Images Attached Images

  9. #8
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Maybe meta is no longer XHTML-compliant.

    To apply a background image to a table cell:
    Code:
    <td style="background-image:url('path/to/image')">
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  10. #9
    Senior Member DanielOliver's Avatar
    Join Date
    Jun 2003
    Location
    Cornwall, England.
    Posts
    1,202
    Member #
    1879
    Thank you very much for the help and advice both of you. I have sorted the table image now but think the meta is strange. I have seen many other sites with the exact same meta tags and have the xhtml validation image on show.

  11. #10
    Senior Member DanielOliver's Avatar
    Join Date
    Jun 2003
    Location
    Cornwall, England.
    Posts
    1,202
    Member #
    1879
    I tried the following
    Code:
    <td rowspan="4" style="background-image:url=('http://www.danieloliver.net/promising/prom7.psd_r6_c6.png')">
    Only to find the image does not appear. Is there something I am doing wrong? I tried all the possible paths it could be but it still did no appear.
    Is there something in that row of code that shouldn't be there?

    Thank you,
    Daniel.


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:53 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com