Use of Tags

John Cowan cowan at
Wed Apr 21 19:40:51 BST 1999

Jonathan Borden wrote:

> are there other pressing reasons why values (particularly
> table columns) ought be expressed as attributes rather than elements? 

The only place where attributes *must* be used is where naive (i.e. HTML)
browsers may be looking at the content, in which case attribute
values are typically hidden and #PCDATA content is typically
exposed.  This is the main rationale for allowing RDF statements
to use either attributes or elements.

Attributes are also modestly more compact.

John Cowan		cowan at
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list