is my "nofollow" code correct ?

Discussion in 'HTML & Website Design' started by Amilo, May 30, 2007.

  1. #1
    I have added some no follow tags to a webpage, is the source code correct please ?

    The "nofollow" shows as red on the page:

    <a href="http://www.google.com/"class="style1rel="nofollow">Google</a>
     
    Amilo, May 30, 2007 IP
  2. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Probably want to start by fixing up the quotation marks.
     
    rgchris, May 30, 2007 IP
  3. rennick

    rennick Peon

    Messages:
    85
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, that's a bit messy. Try:

    <a href="http://www.google.com/" class="style1" rel="nofollow">Google</a>
    Code (markup):
     
    rennick, May 30, 2007 IP
  4. Amilo

    Amilo Peon

    Messages:
    624
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks guys,it now looks like this with no red:

    "class="style1"rel="nofollow">google</a>

    Is that correct ?
     
    Amilo, May 30, 2007 IP
  5. rennick

    rennick Peon

    Messages:
    85
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    When I code I put the spaces in between to read more easily, but I don't think it matters function-wise. Should be ok
     
    rennick, May 30, 2007 IP
  6. Amilo

    Amilo Peon

    Messages:
    624
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thank you for your time and help.
     
    Amilo, May 30, 2007 IP