Results 1 to 3 of 3
  1. #1
    Full Member
    Join Date
    January 18th, 2005
    Help With W3C Validation
    I'm trying to get my home page W3C validated and need some help fixing a few items that have been flagged.

    Here they are (Flag and then my code)

    Line 21: there is no attribute "HEIGHT"
    <td align="center" height="85">

    Line 22: there is no attribute "BORDER"
    <a href=""><img border="0" src="" width="383" height="82" alt="SiteName-Key Phrase"></a></td>

    Line 25, column 18: there is no attribute "BGCOLOR"
    <td bgcolor="#BDD3D6" height="12" align="center">

    Line 26, column 19: there is no attribute "FACE"
    Line 26, column 39: there is no attribute "SIZE"
    Line 26, column 42: element "FONT" undefined
    <font face="Arial Narrow" size="3">

    Line 40, column 24: there is no attribute "WIDTH"
    <td width="168" bgcolor="#84AAA5" valign="top">

    These are pretty typical of things that are being flagged. Suggestions would be appreciated. Just keep in mind that I am not a programmer.

  2. #2
    Join Date
    January 18th, 2005
    I think if you use CSS and CSS classes, you can get by all of this pretty easily. The font tag in particular is one of the things that you can eliminate entirely, and set a font for your whole site via CSS. The code, placed in the head of your web page, would look something like this:

    P { font-family: Verdana; font-size: 9pt }

    What it does is makes all the text that is enclosed within <P></P> tags in Verdana, with a font size of 9 points. That way, you no longer have to use the <font></font> tags for each chunk of text you want to format.

    CSS sounds complicated, but once you learn the basics of it, it is really easy to implement and makes changing the look of your web site super easy. Plus, you can do some neat things with it, like re-sizing and changing the color of your headings <h1>, <h2>, etc. to something that fits your page better. CSS does the work, and all you have to do is place the normal tags in the places on your page you want them to appear.

    There's not enough room to explain it all here, but if you do a search on Google for CSS Tutorials you should find plenty of information.


  3. #3
    Full Member Tech Evangelist's Avatar
    Join Date
    March 16th, 2005
    Mesa, AZ
    You would get more responses if you post a link to your home page. We need to know things like which DOCTYPE the site uses. That would explain some of the seemingly nonsense error messages. You may be using the wrong DOCTYPE.

    I validate every page I work on. Sometimes the errors being generated appear like nonsense, but there is usually a good reason behind them.

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Does w3C validation really matter in SEO?
    By johnnight in forum Search Engine Optimization
    Replies: 1
    Last Post: July 29th, 2010, 05:42 AM
  2. W3C Validation not part of Google Search Engine Ranking Factor
    By Rhia7 in forum Search Engine Optimization
    Replies: 3
    Last Post: November 6th, 2009, 08:45 PM
  3. W3C validation and off-page SEO
    By Stanley Damon in forum Search Engine Optimization
    Replies: 7
    Last Post: May 26th, 2009, 12:59 PM
  4. Being W3C compliant
    By Cav in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: August 18th, 2008, 05:32 PM
  5. W3C Validation
    By CY in forum Commission Junction - CJ
    Replies: 6
    Last Post: January 25th, 2004, 07:14 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