link visited, hover, active : Anchor class « Basic Tags « HTML / CSS

HTML / CSS
1. Background Attributes
2. Basic Attributes
3. Basic Tags
4. Box Model
5. CSS Attributes and Javascript Style Properties
6. CSS Controls
7. Form Attributes
8. Form Style
9. Form Tags
10. Frame Attributes
11. Frame Tags
12. HTML
13. IE Firefox
14. Images
15. Layout
16. Layout Attributes
17. Link Attributes
18. Link Tags
19. List Attributes
20. List Style
21. List Tags
22. Marquee Attributes
23. Meta Tags
24. Microsoft Attributes
25. Object Attributes
26. Object Tags
27. Reference
28. Style Basics
29. Styles Tags
30. Table Attributes
31. Table Style
32. Table Tags
33. Text
34. Text Attributes
35. Text Tags
36. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
HTML / CSS » Basic Tags » Anchor class 
link visited, hover, active
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <style type="text/css">
            a:link {
                background: blue;
                color: white;
            }
            a:visited {
                background: crimson;   
                color: pink;
            }
            a:hover {
                background: black;
                color: white;
            }
            a:active {
                background: red;
                color: white;
            }
        </style>
    </head>
    <body>
        <a href='http://www.g.com'>G</a> | 
        <a href='http://www.w.com'>W</a> | 
        <a href='http://www.p.net'>P</a> | 
        <a href='http://www.q.org'>Q</a>
    </body>
</html>

 
Related examples in the same category
1. Pseudo-class Selectors for anchor
2. a:link
3. a:visited
4. a:hover
5. a:active
6. Link visited hover
7. link visited, hover, active, focus
8. Set anchor hover in
  • under
  • 9. Set anchor link and visited: a:link, a:visited
    10. Set different color for anchor link and visited link
    11. Set color for anchor link, anchor visited, hover and active
    12. Set different anchor link style for navigation and content
    13. style for email anchor,
    14. Three level nesting for anchor link style setting
    15. Three level nesting for visited link style setting
    16. Three level nesting for visited link style setting for two
    17. Three level nesting for an anchor with id
    18. background image, repeat and position for anchor link hover
    19. background image, repeat and position for anchor link active
    20. Use anchor hover to highlight more than one tags
    21. Add border to anchor when hover
    22. a[href^='http://']:hover
    23. Rollover with image
    24. Set cursor for a link
    www.java2java.com | Contact Us
    Copyright 2009 - 12 Demo Source and Support. All rights reserved.
    All other trademarks are property of their respective owners.