Questions tagged [rel]

The rel attribute specifies the relationship between the current document and the linked document

The rel attribute is used in HTML elements to specify the relationship and connection between the current document and the linked document.

Source: W3C (link)

204 questions
5
votes
2 answers

Jquery: Add rel attribute to tags within all
  • tags of a certain class
  • I'm trying to add a rel="lightframe" attribute to all my 'edit' links within my admin_links_node_edit class. My code so far looks like this: $('.admin_links_node_edit…
    Saahir Foux
    • 654
    • 4
    • 12
    • 27
    5
    votes
    2 answers

    How to configure a custom RelProvider for Spring HATEOAS when using Spring Boot?

    I'm using the party model: @Entity @Inheritance(strategy=...) @JsonTypeInfo(use= JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @DiscriminatorColumn(name = "type") public abstract class Party { @Column(updatable =…
    Neil McGuigan
    • 46,580
    • 12
    • 123
    • 152
    5
    votes
    2 answers

    Why is my page showing as validated in the W3C validator, but not when using SEO checking tools?

    I have a web page that returns in W3C Validator as fully validated (and is green). But when I run a check of the same URL in many SEO testing websites, it fails and tells me the errors it failed on: Bad value v:url for attribute rel on element a:…
    Lee
    • 4,187
    • 6
    • 25
    • 71
    5
    votes
    2 answers

    Relative link to stylesheet does not work on local machine, works online. Why is this?

    I'm trying to link my stylesheet (styles.css) to index.html. When I do this using the Sublime Text build function for Chrome, the HTML comes out fine, but does not link to the stylesheet (the text is not blue). When I upload this exact same code…
    Erik V
    • 375
    • 1
    • 4
    • 18
    5
    votes
    1 answer

    Do search engines add weight for microformats?

    For example, if I had My friend Bill or My friend Bill Will Google for example give extra weight to the second because I specified they are a friend?
    alex
    • 479,566
    • 201
    • 878
    • 984
    5
    votes
    3 answers

    How can I use strings for the rel attribute?

    I am trying to validate my HTML5 document with the W3C validation service. I am using the fancybox jQuery plugin for simple light boxes and image galleries. In order to differentiate between each image gallery I am using the rel tag. When I validate…
    Chris Frank
    • 4,124
    • 4
    • 30
    • 42
    4
    votes
    3 answers

    Unregistered values of rel attribute in anchor tag

    I used rel values in jQuery for the parametrized (#!hashbang) AJAX calls. contact and with jQuery: var hashbang = "#!"+$("#_qualifier").attr('rel'); //gives desired…
    vulcan raven
    • 32,612
    • 11
    • 57
    • 93
    4
    votes
    2 answers

    How to indicate links used as hooks for js? Or rel="js" semantic replacement

    I'm looking for good/semantic/passing-validation way to indicate my links, that are used as hooks for javascript. link As I understand "rel" is more about relationships between documents. Also the "data-lang" (from…
    sdvig
    • 123
    • 1
    • 6
    4
    votes
    2 answers

    jQuery maxlength attribute problem with textareas

    With jQuery version 1.2.3 I'm trying to add nodes after textarea elements with attribute 'maxlength' but it doesn't work: $("textarea[@maxlength]").after("Aint working"); This is the HTML code: