HTML Code.. what do i include?

Discussion in 'Web Design and Development' started by mtfield, Jul 14, 2008.

  1. mtfield macrumors 6502

    Joined:
    Jan 9, 2008
    #1
    I'm working on revamping my website, and I'm adding a web app that I found. The instructions told me to copy the code (below) and paste it into my html box on my website. My question is do I leave in the top and bottom line about "<!-- Start/end of StatCounter Code -->" or should i just copy the text in between? thanks!

    <!-- Start of StatCounter Code -->
    <script type="text/javascript">
    var sc_project=3861419;
    var sc_invisible=1;
    var sc_partition=31;
    var sc_click_stat=1;
    var sc_security="24c52494";
    </script>

    <script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><div class="statcounter"><a href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c32.statcounter.com/3861419/0/24c52494/1/" alt="website hit counter" ></a></div></noscript>
    <!-- End of StatCounter Code -->
     
  2. EvanLugh macrumors 68000

    EvanLugh

    Joined:
    Aug 29, 2007
    Location:
    Developer land
    #2
    They're basically telling you what its purpose is. You can keep or remove, won't affect the outcome.
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    The <!-- .... --> are just HTML comments and do no have any effect on your layout. You may want to keep them just so it's easier to identify that code later down the road when you're reworking the code. You'd be surprised how easy it is to forget what some piece of code is for.
     

Share This Page