Open In App

Primer CSS Secondary Link

Improve
Improve
Like Article
Like
Save
Share
Report

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHub’s design system. In this article, we will learn about Primer CSS Secondary Links.

Primer CSS Secondary Links is used to perform 2 tasks. Firstly it provides a greyish color to the text (when you are not hovering). Secondly, it will turn the color of the text to blue, when you hover on it.

Primer CSS  Secondary Link class used:

  • Link–secondary: It provides a greyish color to the text ( when you are not hovering ) and turns the color of the text to blue when you hover on it.

Syntax:

<a class="Link--secondary" href="#">
     ...
</a>

Example 1: In this example, we will learn about Link–secondary. Notice link color also before hovering also.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Primer CSS Links Secondary</title>
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Primer CSS Links Secondary</h3>
    <p style="color:red">
        Please notice Link Color 
          also when not hovering
    </p>
  
    <p>
          To go to GeeksforGeeks 
           <a href="https://www.geeksforgeeks.org" 
              class="Link--secondary">
              Click Me
        </a
    </p>
</body>
  
</html>


Output:

 

Example 2: In this example, we will use Link–secondary under the heading tag.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Primer CSS Links Secondary</title>
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Primer CSS Links Secondary</h3>
    <p style="color:red">
          Please notice Link Color 
          also when not hovering.
    </p>
  
    <h2>To go to GeeksforGeeks 
       <a href="https://www.geeksforgeeks.org" 
        class="Link--secondary">Click Me</a
    </h2>
</body>
  
</html>


Output:

 

Reference: https://primer.style/css/components/links#secondary-link



Last Updated : 05 May, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads