area rel Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:area

Description

The rel attribute specifies the relationship between the current document and the linked document.

Only used if the href attribute is present.

Attribute Values

Value Description
alternate an alternate version of the document
author author of the document
bookmark Permanent URL used for bookmarking
help Links to a help document
licenseLinks to copyright information
next The next document in a selection
nofollow nofollow" is used by Google, to specify that the Google search spider should not follow that link
noreferrer browser should not send a HTTP referer header if the user follows the hyperlink
prefetch target document should be cached
prev The previous document in a selection
search Links to a search tool for the document
tagA tag for the current document

An image-map, with a clickable area:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p>Click on the sun to watch it closer:</p>

<img src="https://www.java2s.com/style/demo/Opera.png" width="145" height="126" alt="message" usemap="#myMap">

<map name="myMap">
  <area shape="rect" coords="0,0,80,100" alt="A" href="" rel="alternate">
</map><!--from w  ww  .jav a 2 s  . co m-->

</body>
</html>

Related Tutorials