1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Newb html question

Discussion in 'Black Hat SEO' started by jb2008, May 11, 2011.

  1. jb2008

    jb2008 Senior Member

    Joined:
    Jul 15, 2010
    Messages:
    1,158
    Likes Received:
    972
    Occupation:
    Scraping, Harvesting in the Corn Fields
    Location:
    On my VPS servers
    I want to add <meta name="robots" content="noarchive">

    to my header, but it already has the following:

    <meta name="robots" content="follow, all" />

    Do I just take a new line and paste in <meta name="robots" content="noarchive">

    or do I add , noarchive after all ?

    Also, what is the difference between the <....... > in the noarchive line, and the <........../> in the follow, all line?

    Thanks
     
  2. kokoloko75

    kokoloko75 Elite Member

    Joined:
    Jan 1, 2011
    Messages:
    1,628
    Likes Received:
    1,935
    Occupation:
    Design director
    Location:
    Paris (France)
    HTML:
    <meta name="robots" content="index, follow, noarchive">
    And the slash at the end is useless.

    Beny
     
    Last edited: May 11, 2011
  3. 5VM5UN6

    5VM5UN6 Registered Member

    Joined:
    Jun 18, 2009
    Messages:
    51
    Likes Received:
    9
    Slash at the end is xHTML markup, to close the <meta> tag
     
  4. madoctopus

    madoctopus Supreme Member

    Joined:
    Apr 4, 2010
    Messages:
    1,249
    Likes Received:
    3,498
    Occupation:
    Full time IM
    slash at the end is not useless. if your doctype is XHTML as opposed to HTML you should close the tag with a /> and make sure you have a space before the slash.
     
  5. milans

    milans Regular Member

    Joined:
    Mar 26, 2011
    Messages:
    370
    Likes Received:
    149
    XHTML had better structure than HTML by the way
     
    • Thanks Thanks x 1
  6. secondeye

    secondeye Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 1, 2008
    Messages:
    1,173
    Likes Received:
    483
    Home Page:
    HTML:
    <meta name="robots" content="index, follow, noarchive"/>
     
  7. kokoloko75

    kokoloko75 Elite Member

    Joined:
    Jan 1, 2011
    Messages:
    1,628
    Likes Received:
    1,935
    Occupation:
    Design director
    Location:
    Paris (France)
    You can use the slash, but it's not important.
    With and without are W3C valid (in HTML5, anyway...).

    In xHTML it's recommended to put the slash at the end (for self-closing elements like <img>, <a>, <input>, ...).

    Beny
     
    Last edited: May 11, 2011
  8. jb2008

    jb2008 Senior Member

    Joined:
    Jul 15, 2010
    Messages:
    1,158
    Likes Received:
    972
    Occupation:
    Scraping, Harvesting in the Corn Fields
    Location:
    On my VPS servers
    Hey guys,

    thanks so much for your swift answers & productive discussion. I couldn't find the answer anywhere as to the difference.

    My site is wordpress, if it helps. Is it XHTML or HTML? (of course I know wordpress is php not static but the page produced)
     
  9. noober

    noober Junior Member

    Joined:
    Jul 18, 2008
    Messages:
    131
    Likes Received:
    35
    Is it XHTML or HTML?

    Check the DOCTYPE in your page header.
    (View/Source)
     
  10. groundchuckles

    groundchuckles Newbie

    Joined:
    Mar 29, 2011
    Messages:
    3
    Likes Received:
    0
    the slash is only really important if you're doctype is xhtml and if you're worried about your code validating. no reason not to add the slash though.
     
  11. jb2008

    jb2008 Senior Member

    Joined:
    Jul 15, 2010
    Messages:
    1,158
    Likes Received:
    972
    Occupation:
    Scraping, Harvesting in the Corn Fields
    Location:
    On my VPS servers
    Doctype is XHTML 1.0 Transitional .

    So I'm gathering:

    No slash for HTML
    Slash for XHTML

    And what is the difference between "follow, all" and "index, follow" ? Isn't it obvious that you want the robot to index your stuff and follow the links unless you put noindex and nofollow in there or something? And what is the "all" command all about? I tried to read about it on this page: http://www.csgnetwork.com/robots.html but it still doesn't make much sense to me. Do I even need the index,follow in there since it's the default?
     
    Last edited: May 12, 2011