What is HTML Link Rel Generator?
An HTML link tag connects a page to another resource or declares a relationship in the document head. Developers use link tags for canonical URLs, language alternates, icons, preload hints, preconnect hints, stylesheets, and more. This tool helps beginners avoid missing attributes such as as, type, href, or crossorigin.
How to use this tool
- Choose the rel value that matches the relationship or browser hint you need.
- Enter the href path or URL.
- Add as, type, and crossorigin only when they apply to the selected rel value.
- Copy the generated tag into the head section of your HTML.
What you can use it for
- Create a preload tag for a font, script, image, or stylesheet.
- Add preconnect or dns-prefetch for third-party origins.
- Build link tags without forgetting as, type, or crossorigin attributes.