CSS3 > Selectors

Link selector in CSS3

How to add style to the unvisited links in CSS3?


By using link selector we can add style to the unvisited links.

<style>
        a:link {
            background-color: pink;
        }
</style>

<body>    
    <a href="http://www.techfunda.com" title="TechFunda.com">TechFunda.com</a> | <a href="http://www.dotnetfunda.com" title="DotNetFunda.com">DotNetFunda.com</a>
</body>

In the above code snippet we have given style to the link in the <a> tag. It represents the unvisited links on the web page.

OUTPUT

 Views: 532 | Post Order: 29



Write for us