Thursday 16 June 2016

Task 27.2

Changing the default colour of links in html.



The Script:

<!DOCTYPE html>
<html>
<head>
<style>
a:link {
    color: green;
    background-color: transparent;
    text-decoration: none;
}
a:visited {
    color: pink;
    background-color: transparent;
    text-decoration: none;
}
a:hover {
    color: red;
    background-color: transparent;
    text-decoration: underline;
}
a:active {
    color: yellow;
    background-color: transparent;
    text-decoration: underline;
}
</style>
</head>
<body>

<p>Changing the default colours of links</p>

<a href="https://en.wikipedia.org/wiki/Horse" target="_blank">Wikipedia page about horses</a>

</body>
</html>

No comments:

Post a Comment