Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML rel="tag"

A rel="tag" attribute value specifies that the linked page is an author-designated place for tags, keywords, or subjects for the current page.

The specified link only contains current page tags.

Example

#

A rel="tag" on an <a> tag.
This link tags the current page with the keyword Impressionism.

For clarifications visit the Wikipedia page on
For clarifications visit the Wikipedia page on
<a rel="tag" 
   href="https://en.wikipedia.org/wiki/Impressionism" 
   target="_blank">Impressionism</a>

Using rel="tag"

The rel attribute defines the relationship between the current page and the linked page or resource.

The rel="tag" value specifies that the linked page contains the tag, keyword, or subject of the current page.

This value only specifies the current page's tag and not for the entire site.


Syntax

<tagname rel="tag" />

Elements that accept rel="tag"

These elements accept the tag value on the rel attribute.

Elements Description
<a> Specifies an anchor link -- see example above
<area> Creates clickable areas inside an image map.

Browser support

Here is when rel support started for each browser:

Chrome
6.0 Sep 2010
Firefox
4.0 Mar 2011
IE/Edge
12.0 Jul 2015
Opera
11.1 Mar 2011
Safari
5.0 Jun 2010

You may also like


Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides