Rel attribute question

Discussion in 'HTML & Website Design' started by Briongloid, Dec 5, 2007.

  1. #1
    I've a bit of a puzzler here. I've got a page which is valid xhtml, and so rather than the target = "_blank" I'm using rel = "external" for links I want to open on a new page.

    Thing is there's a few links I've decided I want to also add the rel = "nofollow" tag to. Now I can put both one after the other -> rel = "external" rel = "nofollow" and the page opens in a new window (so I presume the nofollow is also in effect) but when I do that the page won't validate. I'm stumped as to how I can have both the nofollow attribute and the open in new page attribute working simultaneously.

    Any ideas?
     
    Briongloid, Dec 5, 2007 IP
  2. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #2
    rel="external nofollow"

    But I don't know if that validates.

    ps opening pages in a new page is quite a bad idea. If I wanted to open a page in a new window/tab I would right click and choose to open it in a new window/tab. Thats one reason why the target is non-valid.
     
    twistedspikes, Dec 5, 2007 IP
  3. Briongloid

    Briongloid Peon

    Messages:
    89
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, it validates alright but it doesn't open in a new window.

    By the way the reason I want to open them in external pages is because they're affiliates ads and so forth, and I'd rather keep the main page open the whole time.
     
    Briongloid, Dec 5, 2007 IP
  4. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #4
    Still, i'd find it annoying if a site opens new windows for me. Up to you really.

    I don't think you will be able to open in a new window with it validating (without JS)
     
    twistedspikes, Dec 5, 2007 IP