Forum Moderators: open

Message Too Old, No Replies

Can I Use Comment Tags Like This?

         

myrrh

9:06 pm on Oct 26, 2005 (gmt 0)

10+ Year Member



I have certain pages I want to test by removing the AdSense code. My AdSense code is in <div></div> tags. Can I just use html comment tags like this: <!-- div class="whatever"> (adsense code) </div --> instead of removing the AdSense code?

encyclo

4:26 pm on Oct 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, you should be able to set comments like that - it will mean that the AdSense insertion code will not be parsed. However, to avoid any potential problems, I would personally use a comment tag around the entire block:

<!-- <div class="whatever"> (adsense code) </div> -->