Main » TERM » H »

Href Definition & Meaning

Href stands for Hypertext Reference and is the HTML code used to create a link to another page. It is an attribute of an anchor tag (<a>), which is used to determine the beginning and end of a hypertext link. When the anchor tag is used with the href attribute, a hyperlink to a web page, file, email address, or location within the same page is created. It indicates the link's destination.

While an anchor tag is a common use for href, it is not the only one. Href can also be used with <area>, <base>, and <link> elements. The href attribute is supported on all browsers.

Examples of href


<a href="https://www.webopedia.com">Visit Webopedia</a>


The <area> tag defines an area inside an image map.

<img src="planets.gif" width="145"height="126" alt="Planets"



<map name="planetmap">

 <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">

 <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">

 <area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">



The <base> tag specifies the base URL and/or target for all relative URLs in a document.


<base href="https://www.webopedia.com/images/">



The <link> tag defines the relationship between the current document and an external resource.

<link rel="stylesheet" type="text/css" href="theme.css">


Texting & Chat Abbreviations

From A3 to ZZZ we list 1,559 text message and online chat abbreviations to help you translate and understand today's texting lingo. Includes Top... Read More »

Huge List of Computer Certifications

Have you heard about a computer certification program but can't figure out if it's right for you? Use this handy list to help you decide. Read More »

Computer Architecture Study Guide

Computer architecture provides an introduction to system design basics for most computer science students. Read More »

Network Fundamentals Study Guide

Networking fundamentals teaches the building blocks of modern network design. Learn different types of networks, concepts, architecture and... Read More »

The Five Generations of Computers

Learn about each of the five generations of computers and major technology developments that have led to the computing devices that we use... Read More »