CSS link Selector (:link)

What is CSS :link Selector?

CSS link selector matches all element whose href link never ever visit.


General syntax of CSS :link selector,

:link {
  property: value;
  property: value;

a:link {
  property: value;
  property: value;


Match all element whose href link never visit before.

<!DOCTYPE html>
  <title>CSS :link Selector</title>
  <style type="text/css">
      color: red;
  <a href="#">First</a><br />
  <a href="#">Second</a><br />
  <a href="#">Third</a><br />

Run it...   »

Browser Compatibility

  • Google Chrome 1+
  • Mozilla Firefox 1+
  • Internet Explorer 7+
  • Opera 9.2+
  • Safari 1.3+

Note: Here details of browser compatibility with version number may be this is bug and not supported. But recommended to always use latest Web browser.