Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me
All your queries regarding CSS will be solved in this forum
  • Page:
  • 1
TOPIC:

pseudo-classes

pseudo-classes 1 year, 9 months ago #115

  • avan12
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Karma: 0
Hi,

I want to know what are pseudo-classes? Can some one explain with example?

Re:pseudo-classes 1 year, 9 months ago #119

  • yoko
Hi,

Pseudo-classes are fictional element types that do not exist in HTML. In CSS1 there is only one element type which can be classed this way, namely the A element (anchor).

By creating three fictional types of the A element individual style can be attached to each class.

These 3 fictional element types are: A - unvisited link, A - active link, A - hover link and A -visited link.

Pseudo-classes are created by a colon followed by pseudo-class's name.

They can also be combined with normal classes, e.g.:

<a href=“#”....> Styling Pseudo-classes</a>

a:link {background: black; color: white}
a:visited {background: black; color: white}
a:hover{background: black; color: white}
a:active {background: black; color: red}
  • Page:
  • 1
Time to create page: 1.82 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download