Can <code> be indexed by Google?

Discussion in 'Google' started by AllproJJ, Jan 18, 2011.

  1. #1
    I was wondering if I put text with <code> like this:
    This is a Test!
    Code (markup):
    , will the text still be indexed by Google?
     
    AllproJJ, Jan 18, 2011 IP
  2. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #2
    i don't really get it but.. but i think yes.. but you if you are like hiding text with that? its a good idea coz' its against google guidelines..
     
    bogs, Jan 19, 2011 IP
  3. AllproJJ

    AllproJJ Active Member

    Messages:
    772
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I was hoping that whatever you put in the <code></code> wouldn't be indexed. I sell unique articles and want to provide a "sample" of the article, but don't want any of the article indexed on the internet.
     
    AllproJJ, Jan 19, 2011 IP
  4. WishBone

    WishBone Peon

    Messages:
    2,566
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Check out the source code if it still reflects your link inside that code.
     
    WishBone, Jan 19, 2011 IP
  5. DoDo Me

    DoDo Me Peon

    Messages:
    2,257
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes, it will. if you do not want any part get index, use <!-- --> comments
     
    DoDo Me, Jan 20, 2011 IP
  6. AllproJJ

    AllproJJ Active Member

    Messages:
    772
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Hey DoDo Me could you explain <!-- --> a little more? How do I use it to stop the text from being indexed?

    Thanks,
    AllproJJ
     
    AllproJJ, Jan 20, 2011 IP
  7. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If your code is server side script and not rendered in the browser, then it will not be indexed.

    If your code is readable in the browser, it will be indexed.

    So the way to do it is to put all of your sample pages in a folder called /samples/ and use robots.txt to disallow the /samples/ folder.
     
    longcall911, Jan 20, 2011 IP