Re: color text?
wmperry@spry.com
Wed, 3 May 95 10:17:15 EDT
Joe English writes:
> 
> wmperry@spry.com wrote:
> 
> >   This would be a good thing.  The problem right now is that <style> is
> >   restricted to the <head> of a document.  emacs-w3 will gracefully switch
> >   styles wherever it encounters the <style></style> container, but I don't
> >   know about arena.  If we recommend it as a 'Good Thing' to do, we should
> >   definitely change the DTD to reflect this.
> 
> I don't think it's necessarily a Good Thing...
> If you're going to allow:
> 
> 	<style>h1: font.family=utopia</style>
> 	<h1>Blah</h1>
> 	...
> 	<style>h1: font.family=times-roman</style>
> 	<h1>Blah</h1>
> 
> why not just use
> 
> 	<h1 font.family="utopia">Blah</h1>
> 	...
> 	<h1 font.family="times-roman">Blah</h1>
> 
> (other than ending up with gazillions of attributes, that is)?
> 
> If style information is to be embedded in the document body,
> I feel it should at least be synchronous with the element structure.
> Changing style sheets "midstream" defeats this; they would
> act more like PIs.
  This wasn't a conscious decision on my part.  Just the way the parser and
  the style sheet bindings interact. :)  I could see the usefulness of
  having well defined stylesheets for large <div> sections of a document,
  but this can be equally well served with the CLASS attribute on <div> and
  a single stylesheet.
-Bill P.