Join Stack Overflow to learn, share knowledge, and build your career. site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. What is the purpose of the “role” attribute in HTML? Link relation values and REL attribute - edited. Supported elements. JavaScript page for this attribute: rel. For the use in HTML5, all other link types need to be defined/listed on this page in the microformats wiki: Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”? It is an attribute of the anchor tag. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. Ask Question Asked 6 years, 6 months ago. You may add your own values to this list, which makes them legal HTML5 rel values. The complete details of tags used inside rel are here.. By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy. By default, this line should have a green background. Definition and Usage. rel attributes are used in some microformats and in XHTML Friends Network (XFN). How can a GM subtly guide characters into making campaign-specific character choices? Projects. 1 "rel" attribute frequently asked questions. Like so: .. is it valid and cross-browser compatible? You can find other example(s) there. To learn more, see our tips on writing great answers. HTML5 defines some values for the rel attribute: Yes it's valid and it works on all browsers, including IE7 and IE8. 1.1 FAQ. If the href attribute is missing from the tag, the rel attribute is ignored. Possible values: String that sets a space-separated list of relation types. @StevenVachon Strutctured Data Testing Tool doesn´t care about rel anymore. What is the purpose of the “role” attribute in HTML? What does the ^ character mean in sequences like ^X^I? For example, the css file can be linked with the webpage as a “ stylesheet “. Claire is seasoned technical writer, editor, and HTML enthusiast. The rel attribute is used to specify the relationship between the current and the linked document. The value of this attribute is a space-separated list of link types. 1 comment Assignees. This property is used only when the href property is applied. Active 6 years, 1 month ago. In REST, do we always use link relation values to convey semantics/role of a linked resource? double quotes inside single quotes: $('a[rel="nofollow self"]') single quotes inside double quotes: $("a[rel='nofollow self']") The rel attribute of the link, a, and area elements is defined in HTML5, and the registry for new values is located at There is a common misconception that 'rel' is an attribute that can be used to hold any custom data. It works if I remove the second attribute. That means [rel^=value] is just as useful. Search engines may also use the information in the ‘rel’ attribute to determine how to index or display the page. You can also do the same thing with the class attribute. What is my registered address for UK car insurance? Thanks for contributing an answer to Stack Overflow! It's not! At whose expense is the stage of preparing a contract performed? Making statements based on opinion; back them up with references or personal experience. In HTML these are designated with the rel attribute on link, a, or area elements. Does anyone know some list of attributes useful for SEO and social? Some rel attribute values are defined on this wiki: . author: It defines the author of the document. I tried this tonight, using the following. How can I set the default value for an HTML