W3C home > Mailing lists > Public > www-style@w3.org > March 2002

RE: external/internal hyperlinks

From: Peter Foti (PeterF) <PeterF@SystolicNetworks.com>
Date: Tue, 5 Mar 2002 13:19:23 -0500
Message-ID: <A10A983C9DFBD4119F0300104B2EA6B70F990E@ZIPPY>
To: "'www-style@w3.org'" <www-style@w3.org>
One could always apply a class to the link.  For example:

<style type="text/css">
.internallink a:link, .internallink a:visited, .internallink a:active
   color: red;

.remotelink a:link, .remotelink a:visited, .remotelink a:active
   color: green;

<a href="localpage.htm" class="internallink">Local Page</a>
<a href="http://www.somesite.com/remotepage.htm"
class="remotelink">Remote Page</a>

But you would have to manually define the class.  It would be too much
work to try an parse the link to determine if it was local or not.

> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org]On
> Behalf Of Simon Bellwood
> Sent: Monday, February 25, 2002 4:46 PM
> To: www-style@w3.org
> Subject: external/internal hyperlinks
> A lot of sites seem to be using icons to differentiate 
> between internal and
> external links.
> It would be nice if we could specify that hyperlinks within 
> the same domain
> name have one colour, and hyperlinks that are not in the same 
> domain name do
> not.
> This would probably get more complicated, and a list 
> specifying "internal"
> domains might be needed, e.g. if microsoft.com linked to 
> microsoft.co.uk,
> this might need to be an internal link.
Received on Tuesday, 5 March 2002 13:17:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:01 UTC