W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] <A> Element & Attributes

From: Eugene T.S. Wong <lists.eugenetswong@gmail.com>
Date: Fri, 13 Jan 2006 14:15:25 -0800
Message-ID: <op.s3b73zjwi1dj5p@ew.comeleonhq>
If I understand W3C correctly, they intend to give designers and  
developers the ability to make anything clickable. Should we allow  
all/most things to be clickable by default? If we get rid of <A> and just  
place the attributes in the containing element or a span element, then we  
might produce better code. For example:

<MENU>
<LI HREF="/">Home</LI>
<LI HREF="sitemap">Site Map</LI>
<LI>Catalog</LI>
<LI HREF="contact">Contact Information</LI>
</MENU>

In the above example, 3 out of 4 items would be clickable, and the code  
implies that the user is viewing the catalog right now, and that that item  
is not clickable at this time.

I noticed from the list of phrase elements, that there are not many 1  
letter element names. If we get rid of <A>, then that means we'd be using  
longer names, like <SPAN>. Maybe we should keep <A>, but still make the  
others clickable. The benefit of that is for when we use enclose inline  
text that is surrounded by other inline text. For example:

<P>Foo <A HREF="asdf">bar</A> biz baz.</P>

Comments? Questions?

-- 
Sincerely, and with thanks,
Eugene T.S. Wong
Received on Friday, 13 January 2006 14:15:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:25 UTC