Yahoo Web Search

Search results

  1. Top results related to rel in html

  2. Definition and Usage. The rel attribute specifies the relationship between the current document and the linked document. Only used if the href attribute is present. Tip: Search engines can use this attribute to get more information about a link!

  3. People also ask

    • Overview
    • Values
    • Browser compatibility
    • See also

    The rel attribute defines the relationship between a linked resource and the current document. Valid on , , , and , the supported values depend on the element on which the attribute is found.

    The type of relationships is given by the value of the rel attribute, which, if present, must have a value that is an unordered set of unique space-separated keywords. Differently from a class name, which does not express semantics, the rel attribute must express tokens that are semantically valid for both machines and humans. The current registries for the possible values of the rel attribute are the IANA link relation registry, the HTML Living Standard, and the freely-editable existing-rel-values page in the microformats wiki, as suggested by the Living Standard. If a rel attribute not present in one of the three sources above is used some HTML validators (such as the W3C Markup Validation Service) will generate a warning.

    The following table lists some of the most important existing keywords. Every keyword within a space-separated value should be unique within that value.

    The rel attribute is relevant to the , , , and elements, but some values only relevant to a subset of those elements. Like all HTML keyword attribute values, these values are case-insensitive.

    alternate

    Indicates an alternate representation of the current document. Valid for , , and , the meaning depends on the values of the other attributes.

    •With the stylesheet keyword on a , it creates an alternate stylesheet.

    •With an hreflang attribute that differs from the document language, it indicates a translation.

    •With the type attribute value of "application/rss+xml"or "application/atom+xml", it creates a hyperlink referencing a syndication feed.

    •Otherwise, it creates a hyperlink referencing an alternate representation of the current document, whose nature is given by the hreflang and type attributes.

    html.elements.link.rel

    BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

    html.elements.a.rel

    BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

    html.elements.area.rel

    BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

    •HTMLLinkElement.relList

    •HTMLAnchorElement.relList

  4. Feb 27, 2023 · Learn how to use the rel attribute to define relationships between links and elements on your web page. Discover the different types of rel attributes and their use cases, such as opening links in new tabs, connecting related content, and specifying the main page.

  5. Jul 11, 2024 · The rel stands for "relationship", and is one of the key features of the <link> element — the value denotes how the item being linked to is related to the containing document. There are a number of other common types you'll come across. For example, a link to the site's favicon: html. <link rel="icon" href="favicon.ico" />

  6. Feb 19, 2024 · Learn how to use the rel attribute in HTML to define the relationship between the current document and the linked resource. See common values, link types, SEO and accessibility tips, and examples.

  7. Oct 12, 2020 · Learn how to use the rel attribute inside anchor tags ( ) to describe the relation of a linked resource. The rel attribute can take one of 14 values, such as alternate, author, bookmark, nofollow, and more.

  8. Sep 23, 2020 · Learn how to use the rel attribute inside link tags ( ) to describe the relation of a linked resource. The tutorial covers 16 values of rel and their meanings, with examples and browser support.

  1. People also search for