Home >> Tutorials/FAQs >> CSS Tutorials >> Index
CSS Tutorials - Pseudo Classes on "A" Tags
By: FYICenter.com
(Continued from previous topic...)
What Are the Pseudo Classes on <A> Tags?
Pseudo classes are classes used by Web browsers to differentiate statuses of a HTML tag.
CSS definitions can use pseudo classes as selectors with a leading colon like (:visited).
There are 3 pseudo classes on the <A> tag:
- A:link - A hyper link that has not been visited.
- A:visited - A hyper link that has been visited before.
- A:active - A hyper link that is currently under the mouse pointer.
If you want to the alter the default style sheets of the browser, you could define something like this:
/* show un-visited links in blue */
A:link {color: blue}
/* show visited links in yellow */
A:visited {color: yellow}
/* change background color gray when mouse over links */
A:active {background-color: gray}
(Continued on next topic...)
- What Is CSS (Cascading Style Sheets)?
- What Is the Basic Unit of CSS?
- How Many Ways to Attach CSS to HTML Documents?
- How To Include CSS Inside an HTML Tag?
- How To Include CSS Inside the HEAD Tag?
- How To Store CSS Definitions in External Files?
- How Many Ways to Select HTML Tag Instances?
- What Is a Class Selector?
- What Is an ID Selector?
- What Is a Contextual Selector?
- What Is a Group Selector?
- What Is a Mixed Selector?
- What Are the Pseudo Classes on <A> Tags?
- How To Group CSS Definitions Together?
- What Is Style Property Inheritance?
- What Is CSS Cascading?
- What Are the CSS Cascading Order Rules?
- How To Remove the Top White Space of Your Web Page?
- How To Set Different Text Fonts Inside Tables?
- How To Use Class Selectors to Differentiate Tag Instances?
- How To Use IDs to Override Classes?
|