css a:link code example
Example 1: css link
<link href="main.css" rel="stylesheet">
Example 2: text underline hover css
a:hover {
text-decoration: underline;
}
Example 3: css a link style
a:link { /* unvisited link */ color: #000; text-decoration: none; border: none; }
a:visited { /* visited link */ color: #000; }
a:hover { /* mouse over link */ color: #000; border: none; }
a:active { /* active link */ color: #000; }
Example 4: linking in css
<p><a href>.css</a></p>