[whatwg] Attributes vs. Elements

Daniel Glazman daniel.glazman at disruptive-innovations.com
Mon Mar 12 23:23:08 PDT 2007

On 13/03/2007 07:12, Karl Dubost wrote:

> more references, food for thoughts.
> * Markup design: elements or attributes?
>   http://annevankesteren.nl/2004/07/markup
> * Principles of XML design: When to use elements versus attributes
>   http://www-128.ibm.com/developerworks/xml/library/x-eleatt.html
> * SGML/XML: Using Elements and Attributes
>   http://www.oasis-open.org/cover/elementsAndAttrs.html

I would add a major principle, rarely explicit : PRAGMATISM.
Sometimes purity calls for an element while browser implems
call for an attribute ; or the contrary. And even if implem
issues should not apply in theory, they do apply in real life...


More information about the whatwg mailing list