Tested tool guide
Tested browser tools
Checked August 16, 2026
What Link Rel Tag Generator does, with a checked example
Link Rel Tag Generator assembles HTML <link> elements for canonical URLs, alternate versions, pagination neighbors, preloaded resources, and icons. It combines the selected relationship with a destination URL and any applicable attributes, producing markup for a document's <head>. The common mistake is treating the generated tag as a command that guarantees browser or search-engine behavior. A link element declares a relationship; consumers may ignore it, and the referenced URL, language code, resource type, and page relationship must still be correct.
Worked example
A concrete input and expected output from the current implementation.
Input
Relation: canonical
URL: https://example.com/guides/link-tags
->
Expected output
<link rel="canonical" href="https://example.com/guides/link-tags">
The canonical choice becomes the rel value, and the entered URL becomes href. No closing </link> tag is used because link is a void HTML element.