"Richard" <anonymous@127.000> wrote:
> I would strongly suggest not using a tag name as a class/id name.
Why? It might not be optimally informative and mnemonic to a human
reader, but surely there's nothing technically wrong with using
<div class="div" id="div">.
And it could make perfect sense in some cases to use a tag name
(that is, a string that is also defined as a tag name, or element name
to be more exact). For example, if you, for some reason, wrap all your
body content into a div element, what would be more logical than assign
class "body" to it?
<body><div class="body">...</div></body>
> use a more unique name such as ndiv or mydiv.
That would hardly be any more understandable.
> The system would not be confused trying to figure out what to do
> with it.
Have you any actual evidence of a browser getting confused with the use
of a tag name as a class or id name? Please let us know, so that we can
avoid such horrendously buggy wowsers.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html