HTML Attributes
HTML rel attribute
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
| Name | Type | Description |
|---|---|---|
| rel | space-separated relationship keywords | 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. |
Working Example
Example Snippethtml
<a href="https://example.com" target="_blank" rel="noopener">Visit site</a>