Different pseudo classes can be used for styling the hyperlinks in a web document. The pseudo classes that can be used are: link, visited, hover and active. The pseudo class link represents all fresh hyperlinks, visitedrepresents all visited hyperlinks, hover represents a hyperlink on which the mouse pointer is hovered and active represents a focused hyperlink. Below example demonstrates styling hyperlinks, the order of pseudo classes must be preserved: /* unvisited link */ a:link { color: #FF0000; } /* visited link */ a:visited { color: #00FF00; } /* mouse over link */ a:hover { color: #FF00FF; } /* selected link
The post How to style hyperlinks in CSS appeared first on Coding Security.
How to style hyperlinks in CSS
read more
Tidak ada komentar:
Posting Komentar