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

        • Claire Lescarret

          #5
          Re: Validating question.

          Adrienne,

          Thank you for your answer. I began doing just that with Google's code, and
          I'll continue with StatCounter too.

          Thanks,
          Claire.

          On 24/3/05 1:38 AM, Adrienne wrote (in part):
          [color=blue]
          >
          > 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.[/color]

          Comment

          • Claire Lescarret

            #6
            Re: Validating question.

            Els,

            Your help is very specific! Thanks a lot for those sugestions on js too.

            Obrigada de partilhar seu tempo!
            Claire.

            On 24/3/05 2:18 AM, Els wrote (in part):
            [color=blue]
            >
            > 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;j
            > ava=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.[/color]

            Comment

            • Claire Lescarret

              #7
              Re: Validating question.

              Arne,

              Thank you for your answer too. Now it is clear that code won't be a problem.
              Thanks,
              Claire.

              On 24/3/05 2:44 AM, Arne wrote in part:
              [color=blue]
              >
              > 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/[/color]

              Comment

              • Claire Lescarret

                #8
                Re: Validating question.

                Hi again.

                Now my StatCounter code is OK, even though I can't yet understand why they
                use the "target" tag if it can be deleted just like that.

                Today I decided to post Google's code basically for the same reasons, since
                I woudn't like to delete something important. Could you help me to have it
                validated (Html 4.01 Strict) and properly working?

                I understand borders and bgcolor can be "safely" deleted, *but* I'm not sure
                about "target" (again) and this line:
                nowrap="nowrap" valign="top" align="left" height="32""

                Thanks!
                C.


                <form method="get" action="http://www.google.fr/custom"
                target="google_ window">
                <table border="0" bgcolor="#fffff f">
                <tr>
                <td nowrap="nowrap" valign="top" align="left" height="32"><a
                href="http://www.google.com/"> <img
                src="http://www.google.com/logos/Logo_25wht.gif"
                border="0" alt="Google"></a> <br>
                <input type="hidden" name="domains" value="sitename .org">
                <input type="text" name="q" size="31" maxlength="255" value="">
                <input type="submit" name="sa" value="Google Search">
                </td>
                </tr>
                <tr>
                <td nowrap="nowrap" ><table>
                <tr>
                <td><input type="radio" name="sitesearc h" value="">
                Web</td>
                <td><input type="radio" name="sitesearc h" value="sitename .org"
                checked>
                sitename.org</td>
                </tr>
                </table>
                <input type="hidden" name="client" value="#sitenum ber">
                <input type="hidden" name="forid" value="1">
                <input type="hidden" name="ie" value="ISO-8859-1">
                <input type="hidden" name="oe" value="ISO-8859-1">
                <input type="hidden" name="cof"
                value="GALT:#DD 8946;GL:1;DIV:# 009C31;VLC:99FF 16;AH:center;BG C:FFFFFF;LBGC:9 9
                CF46;ALC:002C31 ;LC:005C31;T:00 0000;GFNT:0000F F;GIMP:0000FF;L H:50;LW:168;L:h t
                tp://www.sitename.or g/logo.gif;S:http ://www.sitename.or g/;FORID:1;">
                <input type="hidden" name="hl" value="es">
                </td>
                </tr>
                </table>
                </form>

                Comment

                • Big Bill

                  #9
                  Re: Validating question.

                  On Fri, 25 Mar 2005 23:51:06 -0600, Claire Lescarret <clairel@nul.co m>
                  wrote:
                  [color=blue]
                  >Hi again.
                  >
                  >Now my StatCounter code is OK, even though I can't yet understand why they
                  >use the "target" tag if it can be deleted just like that.[/color]

                  3rd-party code; it's like that everywhere.

                  BB
                  --
                  www.kruse.co.uk/ seo@kruse.demon .co.uk
                  seo that loves a cuddle...
                  --

                  Comment

                  • Adrienne

                    #10
                    Re: Validating question.

                    Gazing into my crystal ball I observed Claire Lescarret <clairel@nul.co m>
                    writing in news:1111816295 .71c59ba3fbe7c1 01a9aefac2821bb 0b7@teranews:
                    [color=blue]
                    > I understand borders and bgcolor can be "safely" deleted, *but* I'm not
                    > sure about "target" (again)[/color]

                    Target is depreciated except for framesets
                    <http://www.w3.org/TR/html4/present/frames.html#ade f-target>.

                    In this instance, it opens the requested link in a new window, similar to
                    a popup. This is also frequently used by authors who do not want users
                    to "leave their site". However, doing this breaks the back button, and
                    people like me, who use mouse gestures, wonder why gesturing back doesn't
                    work until I look up and see the back button is greyed out.
                    [color=blue]
                    > and this line:
                    > nowrap="nowrap" valign="top" align="left" height="32""
                    >[/color]

                    These attributes are better set using CSS, <td style="white-space:nowrap;
                    verticle-align: top; text-align: left; height: 32px;">

                    --
                    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

                    • kchayka

                      #11
                      Re: Validating question.

                      Adrienne wrote:[color=blue]
                      > Gazing into my crystal ball I observed Claire Lescarret <clairel@nul.co m>
                      > writing in news:1111816295 .71c59ba3fbe7c1 01a9aefac2821bb 0b7@teranews:
                      >[color=green]
                      >> nowrap="nowrap" valign="top" align="left" height="32""[/color]
                      >
                      > These attributes are better set using CSS, <td style="white-space:nowrap;
                      > verticle-align: top; text-align: left; height: 32px;">[/color]

                      These attributes are even better set in an external stylesheet, where
                      they can be set gloablly. Assign a class selector to the <td> if need be.

                      Inline style rules are rarely a good idea.

                      --
                      Reply email address is a bottomless spam bucket.
                      Please reply to the group so everyone can share.

                      Comment

                      • Adrienne

                        #12
                        Re: Validating question.

                        Gazing into my crystal ball I observed kchayka <usenet@c-net.us> writing
                        in news:3alrj7F6d1 k98U1@individua l.net:
                        [color=blue]
                        > Adrienne wrote:[color=green]
                        >> Gazing into my crystal ball I observed Claire Lescarret
                        >> <clairel@nul.co m> writing in
                        >> news:1111816295 .71c59ba3fbe7c1 01a9aefac2821bb 0b7@teranews:
                        >>[color=darkred]
                        >>> nowrap="nowrap" valign="top" align="left" height="32""[/color]
                        >>
                        >> These attributes are better set using CSS, <td
                        >> style="white-space:nowrap; verticle-align: top; text-align: left;
                        >> height: 32px;">[/color]
                        >
                        > These attributes are even better set in an external stylesheet, where
                        > they can be set gloablly. Assign a class selector to the <td> if need
                        > be.
                        >
                        > Inline style rules are rarely a good idea.
                        >[/color]

                        Absolutely, just showing the construct. Maybe put the Google code in a div
                        of its own so it could easily use an external sheet.

                        --
                        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

                        • Uncle Pirate

                          #13
                          Re: Validating question.

                          kchayka wrote:
                          [color=blue]
                          > Inline style rules are rarely a good idea.
                          >[/color]

                          Agreed. Great for newbies though! I got a gal at work (sharp gal)
                          started on CSS the other day. I showed her my global style sheet for
                          the site and how to override using inline on specific portions and
                          defining styles in the head section for a more global change. I also
                          had her bookmark the properties page of the W3C recommendation for
                          CSS2.1. She was excited with what I showed her and I'll be able to
                          expect somewhat better pages from her in the future(Still lots of table
                          layout though<sigh>).

                          --
                          Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
                          Webmaster/Computer Center Manager, NMSU at Alamogordo
                          Coordinator, Tularosa Basin Chapter, ABATE of NM; AMA#758681; COBB
                          '94 1500 Vulcan (now wrecked) :( http://motorcyclefun.org/Dcp_2068c.jpg
                          A zest for living must include a willingness to die. - R.A. Heinlein

                          Comment

                          Working...