Re: HTML 3.2 PR color value syntax

Peter Flynn (pflynn@curia.ucc.ie)
13 Nov 1996 01:44:19 +0000 (GMT)


Date: 13 Nov 1996 01:44:19 +0000 (GMT)
From: Peter Flynn <pflynn@curia.ucc.ie>
Subject: Re: HTML 3.2 PR color value syntax
In-reply-to: <19733.9611121333@strachey.ecs.soton.ac.uk>
To: S.N.Brodie@ecs.soton.ac.uk
Cc: sja20@hermes.cam.ac.uk, www-html@w3.org
Message-id: <199611130144.BAA08431@curia.ucc.ie>

   Yes, although it is more likely to be used by the <font> tag.  Quite
   frequently I see documents with lots of <font> tags for changing
   colours all using the same hex value .  If the colour definition was
   placed in one place and then referred to by colour attribute of the
   font tag, then this would simplify maintainance.  This is something
   that can also be solved by stylesheets, I think, but people are still
   going to use those <font> tags for the foreseeable(sp?) future.

This is already valid, I think, it just needs browser support for
the doctype declaration subset:

<!doctype html public "-//Foo//DTD HTML x.y//EN" [
<!entity pukegreen SDATA "#29D655">
]>
<html><head><title>Colors</title></head><body>
<font face="Bart-Simpson-Bold" size="10" color="&pukegreen">
<h1>Eat my shorts!</h1></font></body></html>

So far as I remember, interpretation of entity references in the
values of attributes is mandated by ISO 8879. Unfortunately not
even Author/Editor supports it :-)

///Peter