Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,038

HOME > HTML/CSS Manual > The :link, :visited, and :active Pseudo-Classes


Send To Friend.Bookmark.
Content="text-html; charset=Windows-1252">

The :link, :visited, and :active Pseudo-Classes

The :link, :visited, and :active pseudo-classes let you set the style of A elements based on the current state of the links. In a selector, you use these pseudo-classes with the A element in the same way you would use class identifiers.

A:link { color: red } /* unvisited link */

A:visited { color: blue } /* visited links */

Unlike class identifiers, you do not use the pseudo-classes with the CLASS= attribute. Instead, the browser automatically interprets which pseudo-class to use based on the state of the link.

You can combine pseudo-classes with normal classes.

A.external:visited { color: blue }

If the URL specified by an A element having the external class (defined above) has been visited, it displays in blue. Note that normal class identifiers must precede the pseudo-class in the selector.

You can apply pseudo-classes to nested element names, just as with class identifiers.

A:link IMG { border: solid blue }

Using pseudo-classes on elements other than the A element has no effect.


ThaiCreate.Com Forum
Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   





ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2026 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่