Validating question.

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

    Validating question.

    Hello,

    I have devoted my time to write valid html 4.01 strict, and CSS-1 and 2
    *but* I also have to use third party's code for webcounter (StatCounter) and
    Google's SiteSearch, which are preventing my pages from validating.

    I woudn't like to take away those services, but I also would like to show my
    valid pages... Any suggestions will be greatly appreciated!

    Thanks in advance.

  • Adrienne

    #2
    Re: Validating question.

    Gazing into my crystal ball I observed Claire Lescarret <clairel@nul.co m>
    writing in news:1111647165 .6950d20f951165 89c3ff93e1c2ba3 0e2@teranews:
    [color=blue]
    > Hello,
    >
    > I have devoted my time to write valid html 4.01 strict, and CSS-1 and 2
    > *but* I also have to use third party's code for webcounter
    > (StatCounter) and Google's SiteSearch, which are preventing my pages
    > from validating.
    >
    > I woudn't like to take away those services, but I also would like to
    > show my valid pages... Any suggestions will be greatly appreciated!
    >
    > Thanks in advance.
    >
    >[/color]

    Will the services still function if you edit the code to make it valid?
    I'm sure that they would not want their code to be depreciated
    StatCounter is pretty straight forward, remove the language="javas cript",
    remove the target="_blank" , remove border=0, and add a enclose the <a
    href=""></a> in a <p> element and it will validate.

    The same should be true of the Google's SiteSearch, and you might need to
    escape ampersands.

    --
    Adrienne Boswell
    Arbpen Consulting will help you harness valuable insights and translate them into tangible results by merging data and strategy.

    Please respond to the group so others can share

    Comment

    • Els

      #3
      Re: Validating question.

      Claire Lescarret wrote:
      [color=blue]
      > Hello,
      >
      > I have devoted my time to write valid html 4.01 strict, and CSS-1 and 2
      > *but* I also have to use third party's code for webcounter (StatCounter) and
      > Google's SiteSearch, which are preventing my pages from validating.
      >
      > I woudn't like to take away those services, but I also would like to show my
      > valid pages... Any suggestions will be greatly appreciated![/color]

      Statcounter is easy to get valid:

      <!-- Start of StatCounter Code -->
      <script type="text/javascript">
      var sc_project=[your-number-here];
      var sc_invisible=1;
      </script>
      <script type="text/javascript"
      src="http://www.statcounter .com/counter/counter.js"></script><noscrip t><div><a
      href="http://www.statcounter .com"><img
      src="http://c1.statcounter. com/counter.php?sc_ project=[your-number-here]&amp;java=0"
      alt="web site traffic analysis"></a></div></noscript>
      <!-- End of StatCounter Code -->

      Spot the differences with your own code, and those changes are likely
      to be the same for any other JavaScript bit of third party code.

      --
      Els http://locusmeus.com/
      Sonhos vem. Sonhos vão. O resto é imperfeito.
      - Renato Russo -

      Comment

      • Arne

        #4
        Re: Validating question.

        Once upon a time *Claire Lescarret* wrote:
        [color=blue]
        > Hello,
        >
        > I have devoted my time to write valid html 4.01 strict, and CSS-1 and 2
        > *but* I also have to use third party's code for webcounter (StatCounter) and
        > Google's SiteSearch, which are preventing my pages from validating.
        >
        > I woudn't like to take away those services, but I also would like to show my
        > valid pages... Any suggestions will be greatly appreciated!
        >
        > Thanks in advance.
        >[/color]

        Statcounter is a good third party service and easy to get valid. I use
        their counter even for a XHTML page (used only for fun and testing
        purpose) that validates: http://hem.bredband.net/b450204/

        --
        /Arne

        Proud User of Mozilla Suite. Get your free copy here:
        *English* http://www.mozilla.org/products/mozilla1.x/
        *Svenska* http://www.mozilla.se/mozilla.shtml

        Comment

        Working...