Href

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://www.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 Braden
Abby Braden
Abby Braden is an award-winning writer and editor for websites such as TechnologyAdvice.com, Webopedia.com, and Project-Management.com, where she covers technology trends and enterprise and SMB project management platforms. When she’s not writing about technology, she enjoys giving too many treats to her dog and coaching part-time at her local gym.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.

Related Articles

Complete List of Cybersecurity Acronyms

Cybersecurity news and best practices are full of acronyms and abbreviations. Without understanding what each one means, it's difficult to comprehend the significance of...

Human Resources Management System

A Human Resources Management System (HRMS) is a software application that supports many functions of a company's Human Resources department, including benefits administration, payroll,...

How To Defend Yourself Against Identity Theft

Almost every worldwide government agency responsible for identity theft issues will tell you the same thing: The first step to fighting identity theft is...

Infographic

An infographic is a visual representation of information or data. It combines the words information and graphic and includes a collection of imagery, charts,...

ScalaHosting

ScalaHosting is a leading managed hosting provider that offers secure, scalable, and affordable...

HRIS

Human resources information system (HRIS) solutions help businesses manage multiple facets of their...

Best Managed Service Providers...

In today's business world, managed services are more critical than ever. They can...