a[rel~="nofollow"]

Discussion in 'CSS' started by areaba, Jul 23, 2009.

  1. #1
    Hi all.

    I am just starting the validation of html and css , I have validate successfully the html and css files but when i shall validate my overall css from index file it shows me the css error like :

    3 a[rel~="nofollow"] Too many values or values are not recognized : thin dashed firebrick


    I did not find this "a[rel~="nofollow"]" can anyone tell me about that how can i correct this?

    Thanks
     
    areaba, Jul 23, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    See §6.12 Link types. "nofollow" is not a valid value. It is a Google proprietary value that the search engines usually honor. There is no reasonable cause not to use it.

    edit: Having reread your post, I am not sure I answered your question. Can you please clarify?

    cheers,

    gary
     
    kk5st, Jul 23, 2009 IP
  3. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you also provide a link to the site in question? We may be able to point specifically to where the problem is.
     
    theapparatus, Jul 23, 2009 IP
  4. areaba

    areaba Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Friends thanks to reply me. i have attached the print sceen image to show you the error, i hope you understand . http://www.funadd.com/image.jpg

    Waiting for your reply.
    Thanks
     
    areaba, Jul 27, 2009 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Huh, it looks like that's somehow the CSS on the validation page! See, all the links are pink with a "firebrick" dashed border!

    Maybe an error occured when it tried to read your local file?

    You could try copy-pasting your CSS instead of giving it a local Url.

    The error itself on the top seems to be because those values (thin dashed firebrick) are listed for a border but without "border" being in the declaration.

    Meaning if this was supposed to be part of your CSS file, it would be something like
    a[rel~="nofollow"] {
    border: thin dashed firebrick;
    }

    Not sure what Gary is talking about, I thought CSS did not look to see that the attribute is allowed, and I've never seen
    <a href="#" rel="nofollow">link</a> as an error, at least, not from the validator. Not with Strict.

    *edit tested with a page of my own, nofollow in a rel attribute is ok as far as the validator is concerned, so it is certainly not the reason for this error here.
     
    Stomme poes, Jul 27, 2009 IP
  6. areaba

    areaba Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have uploaded my css file now no error shown . Thanks for telling me. The error display only when i have checked it locally.

    Thanks for everyone to participate.
     
    areaba, Jul 27, 2009 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    Thanks Stomme. My decrepit memory was telling me that the html validator threw at least a warning for invalid attribute values. The following (pun unintended) does pass with no error or warning.
    <body>
    <p><a href="http://example.com/" rel="nofollow">go</a></p>
    </body>
    Code (markup):
    cheers,

    gary
     
    kk5st, Jul 27, 2009 IP