Horje

WEB feed - Linking Resources - HTML
Learn
HTML - Linking Resources - Web feed
Web Feed

Use the rel="alternate" attribute to allow discoverability of your Atom/RSS feeds.

<link rel="alternate" type="application/atom+xml" href="http://example.com/feed.xml" />
<link rel="alternate" type="application/rss+xml" href="http://example.com/feed.xml" />

See the MDN docs for RSS feeds (opens new window) and Atomic RSS (opens new window).

Syntax

  • <link rel="link-relation" type="mime-type" href="url">
  • <script src="path-to-script"></script>

Parameters

Attribute Details
charset Specifies the character encoding of the linked document
crossorigin Specifies how the element handles cross origin requests
href Specifies the location of the linked document
hreflang Specifies the language of the text in the linked document
media Specifies on what device the linked document will be displayed, often used with selecting stylesheets based on the device in question
rel Required. Specifies the relationship between the current document and the linked document
rev Specifies the relationship between the linked document and the current document
sizes Specifies the size of the linked resource. Only when rel="icon"
target Specifies where the linked document is to be loaded
type Specifies the media type of the linked document
integrity Specifies a base64 encoded hash (sha256, sha384, or sha512) of the linked resource allowing the browser to verify its legitimacy.
Read Article
https://develop.horje.com/learn/1434/reference