Yahoo India Web Search

Search results

  1. People also ask

  2. 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!

    • ❮ Html Tag

      ❮ Html Tag - HTML a rel Attribute - W3Schools

    • 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

  3. 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.

  4. Mar 26, 2024 · The HTML <link> rel attribute is a key component in defining the relationship between the current document and the linked document or resource. It is used only when the href attribute is present. Syntax: <link rel="value"> Attribute Values: Example of HTML link rel Attribute.

  5. 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.

  6. The rel attribute in HTML is used to specify the relationship between the current document and the linked document. It is used with the link and a tags to provide additional information about...

  7. May 13, 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" />

  1. Searches related to rel in html

    link rel in html
    href in html
  1. People also search for