Home > DeveloperSection > Interviews > Different way to design a Links with the help of CSS in HTML?

Posted on    October-13-2016 6:43 AM

 1 Answer(s)
  268  View(s)
Rate this:

Abhishek Srivasatava
Abhishek Srivasatava

Total Post:70

Posted on    October-13-2016 6:43 AM

There are four state of the link.
Link: It is state of a link, when user never opens that link.
Visited: It is state of a link one user already visited to the link.
Hover: It is state of a link when user put the cursor on the link.
Active: It is a state of a link user already opened that link in the same browser.

    background-color: Blue;
    color: white;
    padding: 20px 20px;
    text-align: Right; 
    text-decoration: underline;
    display: inline-block; /*it is used to look link into the square box*/
Similarly, we can define for other status of the link. 

‘a’ is the keyword for the link.

How to define the link in HTML
<a href =”www.MindStick.com”> MindStick </a>.

Don't want to miss updates? Please click the below button!

Follow MindStick