SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    validation please

    Hi,
    I am trying to validate my site , but I get some errors

    Would u help me to find out what's wrong?

    Thanks

  2. #2
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're using an XHTML strict doctype which means that all tags must be closed and all presentation must be handled by the CSS.

    You'll get less errors if you were to use the HTML transitional doctype although personally I'd look to get all the presentational markup into a CSS file anyway.

    Things like width, height, border should all be handled by a stylesheet

    <img> tags will need a closing "/" if you are using XHTML so <img> becomes <img />, <br> become <br /> etc.

    target="_blank" is also deprecated in strict mode so if you need to use this to open a new window then you'll need to use a transitional doctype.#

    Ampersands need to be escaped so & needs to become &amp; in any URL's

    language="javascript" isn't valid. all you need is
    <script type="text/javascript"> to include JavaScript.

    Ensure that any inline elements are contained within a block level element, i.e. <a>'s should be enclosed within <p> or <div> etc

    It looks like the rest of your errors may be knock on effects from not closing img's and br's so I'd fix those first and then see if there are any other outstanding issues.

  3. #3
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most of it is because you are using deprecated attributes.

    These errors
    Code:
    Line 94, Column 53:
             character "&" is the first character of a delimiter but occurred as data.…
    ://s103.histats.com/stats/0.gif?42290&1" alt="contatore per sito" border="0">
    For these errors you need to change & to &amp;

    Also ... you have an XHTML strict doctype and you need to close <img ... > tags like this <img ... />

    EDIT: Bah ... the wiz beat me to it


Bookmarks

Posting Permissions

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