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 (), 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

, , and elements. The href attribute is supported on all browsers.

Examples of href

a href=”https://webopedia.com”>Visit Webopedia/a>

The

tag defines an area inside an image map.

img src=”planets.gif” width=”145″height=“126” alt=”Planets”

usemap=”#planetmap”>

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”>

/map>

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

head>

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

/head>

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

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






Abby Dykes
Abby Dykes
Abby Dykes is a newly-graduated writer and editor for websites such as TechnologyAdvice.com, Webopedia.com, and Project-Management.com. When she’s not writing about technology, she enjoys giving too many treats to her dog and coaching part-time at her local gym.

Top Articles

Huge List Of Texting and Online 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...

How To Create A Desktop Shortcut To A Website

This Webopedia guide will show you how to create a desktop shortcut to a website using Firefox, Chrome or Internet Explorer (IE). Creating a desktop...

The History Of Windows Operating Systems

Microsoft Windows is a family of operating systems. We look at the history of Microsoft's Windows operating systems (Windows OS) from 1985 to present...

Hotmail [Outlook] Email Accounts

  By Vangie Beal Hotmail is one of the first public webmail services that can be accessed from any web browser. Prior to Hotmail and its...

Abacus Definition & Meaning

An abacus, also known as a counting frame, is a mechanical device used...

Legacy Code Definition &...

Legacy code refers to source code that has been inherited from a previous...

Unregulated Power Supply Definition...

An unregulated power supply is a system that transforms input voltage into direct...