links css 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 { color: #000; text-decoration: none; border: none; }
a:visited { color: #000; }
a:hover { color: #000; border: none; }
a:active { color: #000; }
Example 4: how to change hyperlink color in css
a {
background-color: red;
color: white;
padding: 1em 1.5em;
text-decoration: none;
text-transform: uppercase;
}
Example 5: css how to style a
a:link{
color: green;
}
a:visited{
color: purple;
}
a:hover{
color: yellow;
}
a:active{
color: brown;
}
Example 6: linking in css
<p><a href>.css</a></p>