W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 1997

Id and style

From: Claus Poertner <Claus.Poertner@econ.ku.dk>
Date: Fri, 22 Aug 1997 15:57:57 +0200
Message-ID: <c=DK%a=_%p=SamfJur%l=IBTMAIL1-970822135757Z-19207@ibtmail1.ibt.ku.dk>
To: "'www-html-editor@w3.org'" <www-html-editor@w3.org>
In

http://www.w3.org/TR/WD-html40-970708/present/styles.html#h-8.1.1.3

it is mentioned that "to limit the scope of the style information to a
single instance...,set the id attribute". I have tried the examples
provided and neither seems to work with Navigator 4.02 or Explorer 3.02.
As far as I understand the section on id, the point is to provide a
unique name for a part of a document, as in the example given in

http://www.w3.org/TR/WD-html40-970708/struct/global.html#h-7.1.4.1

where both class and id is used in <pre ...> and in

http://www.w3.org/TR/WD-html40-970708/struct/global.html#h-7.1.4.2

where they are used in <div ...>.

I find it a bit peculiar why one would want to limit the occurence of a
style element to just one instance. It would be just as easy to call
class the one time where the style element is needed and use id to refer
to that part of the document.

Yours sincerely,

Claus Pörtner

*********************************************************************
Claus Chr. Pörtner
Institute of Economics, University of Copenhagen
Studiestræde 6, DK-1455 Copenhagen K
Telephone: +45 35 32 30 84, Fax: +45 35 32 30 64
MAILTO:Claus.Poertner@Econ.ku.dk
Home Page: http://www.econ.ku.dk/personal/poertner
*********************************************************************
Received on Friday, 22 August 1997 09:58:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:42 GMT