HTML Attributes

HTML rel attribute

Build a form with the HTML form generator

Defines relationships between a document and a linked resource or navigation target. Valid tokens depend on the element; stylesheet, noopener and canonical have different purposes. Applicable elements include: <a>, <area>, <form>, <link>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.

Formal Syntax & Structure

html syntaxhtml
rel="noopener"

Parameters & Attributes

NameTypeDescription
relspace-separated relationship keywordsDefines relationships between a document and a linked resource or navigation target. Valid tokens depend on the element; stylesheet, noopener and canonical have different purposes.

Working Example

Example Snippethtml
<a href="https://example.com" target="_blank" rel="noopener">Visit site</a>
HTML Reference