a:active {color:#ff0000;} : a « Tags « HTML / CSS

Home
HTML / CSS
1.CSS
2.CSS Controls
3.Form
4.IE Firefox
5.Layout
6.Marquee Attributes
7.Meta Tags
8.Microsoft Attributes
9.Object
10.Reference
11.Style Basics
12.Tags
13.Templates
14.XML
HTML / CSS » Tags » a 




a:active {color:#ff0000;}
    

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type='text/css'>
a:link {
  color:#003399;
  text-decoration:none;}
a:visited {
  color:#006699;
  text-decoration:none;}
a:hover {
  text-decoration:underline;
  background-color:#ccffff;}
a:active {color:#ff0000;}
</style>

</head>
<body>
<p>
<a href="http://www.google.com">www.google.com</a><br />
</p>
</body>
</html>

   
    
    
    
  














Related examples in the same category
1.'a' Example: link
2.'a' Example: anchor
3.Link visted
4.A link with white space
5.A link to send an email
6.A link to a specific part of the page
7.Anchor display: block;
8.Anchor float: left;
9.Anchor font-family: Arial;
10.Anchor font-size: 11px;
11.Anchor color: red;
12.Anchor padding: 0 0 0 15px;
13.anchor color: #acaf2c;
14.anchor font-weight: bold;
15.a with accesskey
16.Anchors and Images
17.Using CSS with Anchors
18.Anchor inside a LI
19.Visted Anchor Style inside a LI
20.Img style inside an anchor
21.Anchor with ID
22.Using dotted line to highlight anchor
23.Link the file in upper level folder
24.Link to html file in the same folder
25.mailto link
26.Link to the file in a folder
27.Link to another site
28.Using ftp protocol in a link
29.Change color for links
30.'alink' specifies the link color inside the 'body' when it has the focus
31.'href' sets URL or anchor point of the 'a', 'area', 'base', and 'link' elements
32.'hreflang' specifies in the href attribute
33.'methods' sets a comma-separated list of HTTP methods supported by the element
34.'name' sets the element name or the target for an anchor 'a' element
35.'rel' describes the relationship between the document in href and the current document
36.'rev': The reverse of the rel attribute
37.'target' Example: blank, parent, self and top
38.'type': set the MIME content type of the document specified by the href attribute
39.'hidefocus' hides focus
40.'style' applies style inline rules to an element
41.'urn' Uniform Resource Name (URN) for a target document
42.'dir' sets the read direction
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.