Notes
By default, a link will appear like this (in all browsers):
- An unvisited link is underlined and blue
- A visited link is underlined and purple
- An active link is underlined and red
<style>
a:link {
color: green;
text-decoration: none;
}
</style>
<a href="https://facebook.com" target="_blank">Facebook</a>
<style>
a:visited {
color: orange;
text-decoration: none;
}
</style>
<a href="https://facebook.com" target="_blank">Facebook</a>
<style>
a:active {
color: green;
text-decoration: none;
}
</style>
<a href="https://facebook.com" target="_blank">Facebook</a>
A link can also be styled as a button, by using CSS:
<style>
a:link {
background-color: #f44336;
color: white;
padding: 15px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
color:yellow;
font-weight:bold;
}
a:hover {
background-color: green;
font-weight:bold;
color:white;
border: 2px solid black;
}
</style>
<a href="/~vtqkyvmy/facebook.com" target="_blank">This is a link</a>
Video
Video does not exists.