W3C home > Mailing lists > Public > www-style@w3.org > November 1997

Re: Attribute selector

From: Chris Lilley <Chris.Lilley@sophia.inria.fr>
Date: Wed, 5 Nov 1997 21:54:00 +0100 (MET)
Message-Id: <9711052153.ZM24552@grommit.inria.fr>
To: "eva" <eva@algonet.se>, <www-style@w3.org>
On Nov 5,  9:28pm, eva wrote:

> "For example, the following rule matches all H1 elements that specify the
> "href" attribute, whatever its value:
> H1[href] { color: blue; }"

It's a valid selector, which selects no elements in a valid HTML file.

> Now, H1 doesn't take the href attribute. Does the above rule apply to H1's
> children or is it merely an abstract example?

It's a mistake ;-) Replace H1 with A

Now, it will select <A HREF="foo"> but will not select <A NAME="foo">
and make them blue. Which is a popular rendering - links in blue,
link targets are not in blue.

> You've done a fantastic job.Congratulation

Thanks. All comments gratefully received, keep them coming in.

Chris Lilley, W3C                          [ http://www.w3.org/ ]
Graphics and Fonts Guy            The World Wide Web Consortium
http://www.w3.org/people/chris/              INRIA,  Projet W3C
chris@w3.org                       2004 Rt des Lucioles / BP 93
+33 (0)4 93 65 79 87       06902 Sophia Antipolis Cedex, France
Received on Wednesday, 5 November 1997 15:54:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:45 UTC