The Wayback Machine - https://web.archive.org/web/20241010211956/https://www.geeksforgeeks.org/difference-between-normal-links-and-active-links/
Open In App

Difference between normal links and active links

Last Updated : 10 Oct, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Websites are designed to point you to different resources. You can move from one website to another through links. Links help you to get information from different resources. Links are established in simple HTML web pages through <a> tag.
Links are categorized into three types. Typically a Link is displayed in three different colors based on the usage.

  • Normal links (Unvisited links)
  • Visited links
  • Active links

Example 1: The following example shows the basic example for Normal Link ( Unvisited Link ). If you want to create a link to go to “https://www.geeksforgeeks.org/“, you can get the normal link through this code. The default color is blue color and underlined but you can apply your own custom styling according to the application’s need.

HTML




<!DOCTYPE html>
<html>
  
<body>
    <h2>This is a Link</h2>
    <h1>
        Welcome to
        <a href="https://www.geeksforgeeks.org/">
            GeeksforGeeks
        </a>
    </h1>
</body>
  
</html>


Output:                        

Visited Link: In example 1, If you click on the link shown above and again go back to the link page, you can now see the link is in purple color and underlined. It shows that the user has visited this link before. You can do your own custom styling using CSS :visited selector. In the above output, notice the visited link after going back from the home page.

Active Link: In example 1, If you left or right-click any one of the links Visited or Unvisited, it will turn into Red and Underline. Active Links shows that the browser is in the process to load a new resource.  You can do your own custom styling using CSS :active selector. In the above output, notice the active link on right-click of the link.

The <a> tag is supported in almost all browsers. So, these are the 3 types of links with their different usages and default stylings. This helps the user to navigate through different resources. 



Similar Reads

Difference between :focus and :active selector
:focus Selector: It generally applies on form elements or elements that can be focused using keyboard or mouse like input box, textarea. An element is in focus state while we use "tab" key of keyboard for that particular element. The state of focus will be same until user switch tab to another element or click. Syntax: :focus { // CSS Property } Ex
2 min read
Difference between Active Matrix LCD and Passive Matrix LCD
1. Passive Matrix LCD: It uses a grid of vertical and horizontal conductors comprised of Indium Tin Oxide to create an image. Each pixel is controlled by an intersection of two conductors. It represents the off state of LCD i.e the pixel is OFF. 2. Active Matrix LCD: It uses thin-film transistors that are arranged in a matrix on a glass surface. To
3 min read
Difference Between Active And Passive Immunity
Difference Between Active And Passive Immunity: Active and passive immunity are two distinct mechanisms by which our bodies defend against infections and diseases. Active immunity, as the name suggests, is a proactive response initiated by our immune system. On the other hand, passive immunity takes a different approach, relying on external sources
4 min read
Difference Between Active and Passive Transport
Active and Passive transport system is present in every phospholipid bilayer of the cell wall, which performs transportation of desired molecules such as nutrients, oxygen, water, and other molecules inside the cells and removal of waste products outside of the cell. Active transport requires ATP to transport molecules from lower concentrations to
6 min read
Difference Between Active and Passive Vocabulary
Vocabulary is an essential aspect of language proficiency, encompassing the words and expressions that individuals understand and use in communication. Within the realm of vocabulary, two main categories are often distinguished: active and passive vocabulary. Understanding the difference between active and passive vocabulary is crucial for language
4 min read
Difference between Active Attack and Passive Attack
In the field of cybersecurity, attacks on networks and systems are broadly classified into two categories: Active and Passive attacks. It is, therefore, important to understand the differences between these two types of attacks so that adequate security measures can be formulated. Active attacks call for the attacker to be involved in other actions
6 min read
Difference between Active and Passive FTP
FTP (File transfer protocol) is well known when it comes to transferring files between the client and the server over a network. There are two types of voice namely: Active and Passive. In this article the focus will be on Active and Passive FTP and their features, and application. What is Active FTP?Consider that Active FTP is a mode of FTP, where
4 min read
Difference between Active and Passive Data Dictionary
In a database management system, a data dictionary is very useful since it offers specific information on the arrangement of the database. It encompasses data requirements such as data type, and relationship, and constraint for data held in the system. There are two primary types of data dictionaries the Active type and the Passive type. Knowing th
6 min read
Difference Between Active Transducer and Passive Transducer
Transducers are elements that can transfer energy from one form to another, and most of them are employed in translating physical variables like temperature, pressure, or force into electrical signals. There are two primary types of transducers: mechanical, electromechanical, and acoustic transducers. Even though both gadgets perform a similar task
5 min read
Difference between Normal Processor and AI Processor
Normal Processor : The processors mainly used in several personal computers are normal processors. Basically the central processing unit is described as a processor of the system. It uses integrated chips to organize all the components at a single place. Different brands provide different load based processors for computer systems and mobile system
2 min read
Difference between Gradient descent and Normal equation
In regression models, our objective is to discover a model that can make predictions that closely resemble the actual target values. Basically, we try to find the parameters of the model which support our objective of the best model. The general behind finding this parameter is that we calculate the error between our actual value and predicted valu
4 min read
Difference Between Inline and Normal Function in C++
Inline Function is a function that is expanded inline by the compiler when it is invoked. During function call, a lot of overhead tasks are performed like saving registers, pushing arguments to the stack, and returning to the calling function. These overheads are time-consuming and inefficient for small-size functions. In C++, the inline function i
4 min read
Difference between Zener Diode and Normal Rectifier Diode
A diode is a two-terminal electronic device that conducts electricity in one direction. It has high resistance on one end and low resistance on the other end. Diodes are used to protect circuits by restricting the voltage and are also used to change AC to DC. Diodes have two terminals that are known as anode and cathode. What is Zener Diode? Zener
5 min read
Difference between Normal Mouse and Gaming Mouse
First of all, to select the right mouse, it is necessary to be aware of available options and differences between regular and gaming mouse if you play or need accurate pointing for certain jobs. Both varieties of mouse have the same fundamental function which is the control and manipulation of the functions of a computer but they both have differen
6 min read
How to add <li> class to active and leave it after hover using jQuery ?
Bootstrap 4 is an open-source CSS framework used for frontend development of web applications. Bootstrap along with HTML and Javascript enrich the user interface for better user experience. jQuery is a Javascript framework that is used to execute Javascript functions. jQuery has similar functionalities like javascript but the only difference is jQu
4 min read
How to Set navbar active class with Bootstrap and AngularJS ?
In this article, we will see how to set the navbar active class with Bootstrap and AngularJS, & will know its implementation through the example. To accomplish this task, you can use ng-controller(NavigationController) to set the bootstrap navbar active class with AngularJS. To run a single controller outside ng-view. You can set class= "active
2 min read
How to use hover, focus and active variants in Tailwind CSS ?
In this article, we will see how to use hover, focus, and active variants in Tailwind CSS. Tailwind CSS uses the Hover, Focus, and Active variants to style an element when the user mouses move over it, focuses it, or actively clicks/tapped it. These variants allow you to create interactive and dynamic user interfaces without writing custom CSS. The
4 min read
How to make Parent Div Activate Styling of Child Div for Hover and Active ?
In this article, we will see how to make parent div activate styling of child div for hover and active. We can do this by using Pseudo-classes like hover and active. Approaches to make parent div activate styling of child div for hover and activeUsing Pure CSS: with pseudo-classesUsing CSS and JavaScript: without pseudo-classesMethod 1: Using Pure
2 min read
How To Make Active Navbar In HTML CSS And JavaScript ?
An active navbar refers to a navigation bar on a website where the current or active page is visually highlighted or distinguished from the other menu items. In this article, we are going to learn how to make an Active Navbar in HTML, CSS, and JavaScript. Prerequisites:HTMLCSSJavaScriptApproachUse HTML to give structure using an unordered list (
2 min read
JavaScript Program to Find the Normal and Trace of a Matrix
JavaScript provides us with ways to find a square matrix's normal and trace. In linear algebra, the total number of entries on the principal diagonal is indicated by the trace, while the normal represents the size of the matrix overall. It is critical to understand these concepts in a variety of computational and mathematical applications. Understa
3 min read
Semantic-UI Step Active State
Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing. In this article, we are going to learn about Step Active State. It is equipped with pre-built semantic components that help create resp
2 min read
How to remove active nav-tab when click outside of nav-tab in Bootstrap ?
Bootstrap has the class called "collapse navbar-collapse" which collapses the navigation bar when the user changes the screen resolution. The java-script along-with it at the bottom of the code triggers the collapsed menu in such a way that when the user clicks the hamburger icon of the menu and navigates to the required link, it again collapses th
2 min read
How to determine active route in AngularJS ?
In this article, we will see how to determine the active route in AngularJS, along with understanding the basic implementation through the example. Approach: To determine which is the active route at any moment in AngularJS this can be achieved by using $on() & $location.path() method. An event can be handled by writing an event handler using a
2 min read
React Suite Dropdown Option Active State
React Suite is a popular front-end library with a set of React components that are designed for the middle platform and back-end products. Dropdown component allows the user to provide navigation that uses a select picker if you want to select a value. React Suite Dropdown Option Active State helps to set a value active by default in a Dropdown men
3 min read
HTML DOM MediaStream active Property
The MediaStream active property returns the Boolean value for currently active stream in the HTML document. This property is read-only. If the stream is currently active then it returns true otherwise, it returns false. Syntax: var isActive = MediaStream.active; Return value: This property return a Boolean value. Example 1: In this example, the aud
2 min read
How to set active tab style with AngularJS ?
In this article, we will see how to set an active tab style using AngularJS, & will also understand its implementation through the example. This task can be accomplished by implementing the isActive and the ng-controller method. We will perform this task with 2 different methods. Method 1: The ng-controller Directive in AngularJS is used to add
2 min read
Styling Active Router Link in Angular
Styling the active router link in angular allows the user to differentiate between the active router link and inactive router links. Angular provides a special mechanism to work with active router links. Approach: Create the Angular app to be used.Create the header component that contains the navigation links.Then apply the "routerLinkActive" on ea
2 min read
How to change font color of the active nav-item in Bootstrap ?
There are two ways that you can change the font color of the active nav-item. The default font-color is white of the active nav-link in the case of Bootstrap nav-active item. The first-way approach is to use a CSS styling file and changing the nav-item class when clicked. The second-way approach is to change the color using jQuery .css() property a
3 min read
How to check which tab is active using Material UI ?
Material-UI is one of the most popular React UI libraries. Material-UI components work in isolation. They are self-supporting, and will only inject the styles they need to display. They don't rely on any global style-sheets such as normalize.css. Some examples of Material UI components are Dialog, Tabs, Text Field, Menu, Chip, Card, Stepper, Paper.
4 min read
jQueryUI Accordion active Option
The accordion active option Indicates which index of the accordion menu is to be open when the page is accessed. By default, the value is 0, i.e. the first menu panel. Values: Boolean: When set to false will collapse all the panels.Integers: Zero-based index that sets which panel is to be active. Value can also be negative.Approach: First, add the
2 min read