Re: ISO and HTML

Drazen Kacar said:

| Ingo Macherius wrote:
| > My feeling about markup languages is: If something could be done as
| > attribute or tag, do it as tag.
| So, we could have tag SMALL that is specifically invented for the purpose
| of changing font properties. Or we could have SIZE attribute in almost
| all other tags. Suppose I need to make a table with somewhat smaller
| font. With SMALL (new tag) approach, I need to open and close SMALL in
| every TD. With SIZE in TABLE tag, I need only write <TABLE SIZE="-1">.

MENU and DIR, as either attribute or tag, state the semantic meaning
of element content. The SMALL/SIZE tag/attribute gives a hint for
visual browsers on font selection for display.
Following the logic of making semantic markup the attribute of a more
or less generic container element you consequently end up saying
<div class="h1>, <div class="html">, <div class="title"> etc. This is
clearly not the way SGML languages work.

Attributes giving hints on the physical appearence of the element content
(which are a pest, but this is another story) should clearly be global to
all tags. Please note that I spoke of unique attributes. An attribute like
ID, which is shared by several tags, increases the count by only 1. The 
high Cougar attribute count results from the many attributes that are just
used by one/few tags. Another increasing factor is, that in e.g. <IMG SRC=...>
and <A HREF=...> two attributes have the same function, but not spelling.

So (new version ;)
My feeling about markup languages is: If something *concerning user data
semantics* could be done as attribute or tag, do it as tag.

Snail : Ingo Macherius // L'Aigler Platz 4 // D-38678 Clausthal-Zellerfeld
Mail  : WWW:
Information!=Knowledge!=Wisdom!=Truth!=Beauty!=Love!=Music==BEST (Frank Zappa)

Received on Sunday, 6 April 1997 19:28:41 UTC