Skip to content
Sid Vishnoi edited this page Jun 30, 2020 · 17 revisions

canonicalURI

The canonicalURI lets you indicate either a URL or a keyword to use as the canonical link of the document. Search engines, like Google, can make use of this information to help determine which version of document is authoritative.

Following keywords automatically generate a corresponding URL. However, you are free to include your own URL.

Keyword Generated URL
"edDraft" Use the edDraftURI as the canonical URL.
"TR" Use the "TR" location for this document, using the shortName.

Example of usage

The following will result in a canonical URL of https://www.w3.org/TR/fooAPI.

const respecConfig = {
  shortName: "fooAPI",
  canonicalURI: "TR",
};

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally