SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why "a:link" if there is already "a"?

    This might seem like a dumb question, but why can we define "a:link?" Isn't this the exact same thing as defining "a?" For example, isn't
    Code:
    a:link { color: pink; }
    a:hover { color: blue; ]
    equivalent to
    Code:
    a { color: pink; }
    a:hover { color: blue; ]
    ??

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2002
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    :.:

    Have you tried using both? I'm guessing that there is no difference, but that a:link is the "standard" way to do it.

    http://www.devguru.com/Technologies/...sses_link.html

    Cosmic.

  3. #3
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could it be that a:link doesn't affect <a name="something"> tags that are only used to mark places in the document that can be linked to?

  4. #4
    SitePoint Enthusiast
    Join Date
    May 2002
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    :.:

    Right on, a:link further specifies so that only <a href=""> tags are effected and not <a name="">.

    I forgot about that page jump tag.

    Cosmic.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •