Use of Tags

John Cowan cowan at locke.ccil.org
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	http://www.ccil.org/~cowan		cowan at ccil.org
	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 ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list