On 4 Nov 2009, at 16:12, Kepler Gelotte wrote:

Because it screws up the semantics.

I thought <span> and <div> were semantically neutral (no inherent meaning).

They are. The content is a heading and a paragraph. Now compare:

<span> <div> : " "

with

<h4> <p> : "This is a heading and a paragraph"

See also the CSS specification:

Note. CSS gives so much power to the "class" attribute, that authors could conceivably design their own "document language" based on elements with almost no associated presentation (such as DIV and SPAN in HTML) and assigning style information through the "class" attribute. Authors should avoid this practice since the structural elements of a document language often have recognized and accepted meanings and author-defined classes may not.
http://www.w3.org/TR/CSS21/selector.html#class-html

Also the javascript approach to apply the link is ignoring the group of
users who don't have javascript or have it disabled.

No, it doesn't. The link is still accessible with mouse, keyboard and any other input device — it just doesn't fill the entire box.

--
David Dorward
http://dorward.me.uk



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to