xhtml strict problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sionvalais

    #1

    xhtml strict problem

    I converted my website to xhtml strict, but it won't be validated. Can
    anyone tell me what is wrong?



    cheers,

    Mark
  • Johannes Koch

    #2
    Re: xhtml strict problem

    sionvalais wrote:[color=blue]
    > I converted my website to xhtml strict, but it won't be validated. Can
    > anyone tell me what is wrong?
    >
    > http://www.sionvalais.com/zermatt.php[/color]

    A validator has probably told you. Here are some of the errors:

    1. Line 6, column 40: there is no attribute "CONTENT" (explain...).
    <meta http-equiv="imagetoo lbar" CONTENT="no" />

    In XHTML, element and attribute names are lower-case.

    3. Line 34, column 38: there is no attribute "language" (explain...).
    <div id="sionvalais" ><script language="Javas cript"
    src="js/menu.js"></script>

    In XHTML 1.0 Strict, there is no language attribute on the script element.

    4. Line 34, column 67: required attribute "type" not specified
    (explain...).
    ...is"><script language="Javas cript" src="js/menu.js"></script>

    The required type attribute is missing.


    Did you read what is linked from the 'explain' link?
    --
    Johannes Koch
    In te domine speravi; non confundar in aeternum.
    (Te Deum, 4th cent.)

    Comment

    • Dean Tiegs

      #3
      Re: xhtml strict problem

      sionvalais@zonn et.nl (sionvalais) writes:
      [color=blue]
      > I converted my website to xhtml strict, but it won't be
      > validated. Can anyone tell me what is wrong?
      >
      > http://www.sionvalais.com/zermatt.php[/color]

      Your first step will be to configure your server to include a charset
      parameter in the Content-Type header. Currently your server returns

      Content-Type: text/html

      You probably want it to be

      Content-Type: text/html; charset=ISO-8859-1

      or

      Content-Type: application/xhtml+xml; charset=ISO-8859-1

      --
      Dean Tiegs, NE¼-20-52-25-W4
      “Confortare et esto robustus”

      Comment

      Working...