W3C home > Mailing lists > Public > www-html@w3.org > May 2003

Re: Semantic versus Structure for XHTML 2.0

From: Philip TAYLOR [PC87S/O-XP] <P.Taylor@Rhul.Ac.Uk>
Date: Fri, 16 May 2003 12:13:55 +0100
Message-ID: <3EC4C7F3.F1A63825@Rhul.Ac.Uk>
To: "www-html@w3.org" <www-html@w3.org>, Karl Dubost <karl@w3.org>

Further to my earlier comment, I now feel that 

> > <div sem="address">
> > <l sem="person">Haruki Murakami</l>
> > <l sem="street">Omote-Sando</l>
> > <l sem="city">  Tokyo</l>
> > </div>

is itself sub-optimal; why invent a parameter "sem" when
the existing parameter "class" is intended to convey exactly
that ?  In which case, the optimal markup would become :

	<div class="address">
	<l class="person">Haruki Murakami</l>
	<l class="street">Omote-Sando</l>
	<l class="city">  Tokyo</l>
	</div>

if each address element is /defined/ to occupy one line;
however, since there may be contexts within which it
is desirable to render an address in a compact form,
it would surely be better to represent this as

	<div class="address">
	<span class="person">Haruki Murakami</span>
	<span class="street">Omote-Sando</span>
	<span class="city">Tokyo</span>
	</div>

and leave it up to CSS styling rules to decide whether
spans of class "person", "street", "city", etc., should
be block or inline.

Philip Taylor, RHBNC
Received on Friday, 16 May 2003 07:15:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:55 GMT