• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql
You are here: Home / HTML / Tags / Attributes / HTML Area Tag NoHref Attribute

HTML Area Tag NoHref Attribute

August 15, 2013 by techhoneyadmin

HTML Area Tag NoHref AttributeHTML Area Nohref attribute defines that the area is not linked to any resource or webpage and hence cannot be clicked.

In other words we can say, that once we mention the area as nohref then the area becomes unclick-able and hence cannot be linked to any resource or webpage.

HTML area nohref attribute’s functionality to make an area non clickable can be very simply achieved by not including any href attribute in the HTML area tag.

Note: HTML Area Nohref attribute is not supported in HTML 5.


Syntax of HTML Area Nohref Attibute

<area nohref>

Example of HTML Area Tag Nohref Attribute

HTML Area Tag Nohref Code Output
<p>Click on the shapes to watch them:</p>
<img src=" HTMLAreaTagEx.gif" alt="Shapes" 
usemap="#shapemap" width="145" height="126">
<map name="shapemap">
<area shape="circle" coords="25,30,12"  nohref
target=_blank>
<area shape="circle" coords="72,35,10"  nohref
target=_blank >
<area shape="circle" coords="115,35,10"  href="star.jpg"
target=_blank >
</map>

Click on the shapes to watch them:

Shapes

Here in the above HTML Area Nohref Attribute example we can see that we have made the circle and triangle area as nohref and hence in the output the areas cannot be clicked as opposed to the Star shape area which can still be clicked as we have not made it nohref.


HTML Area Tag NoHref Attribute Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer No
2 Firefox No
3 Google Chrome No
4 Opera No
5 Safari No

Filed Under: Attributes Tagged With: How to use html Nohref attribute, HTML Area Nohref attribute, HTML area tag Nohref attribute, HTMLareaTagNohrefAttribute, Using HTML Nohref attribute

Copyright © 2023 · Parallax Pro on Genesis Framework · WordPress · Log in