W3C home > Mailing lists > Public > www-html@w3.org > April 2010

Re: Computer languages in langage tag

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 14 Apr 2010 19:16:53 +0000 (UTC)
To: Mariusz GliwiƄski <alienballance@gmail.com>
Cc: David Woolley <forums@david-woolley.me.uk>, www-html@w3.org
Message-ID: <Pine.LNX.4.64.1004141913250.751@ps20323.dreamhostps.com>
On Wed, 14 Apr 2010, Mariusz GliwiĆ~Dski wrote:
>
> Seems like we don't understand each other (in both directions). The 
> basic question is why do we have separate <code> and <lang> elements? 
> Hope it'll let You proceed reading my previous e-mail.

HTML5 suggests using <code class="language-..."> to indicate the language 
of the code, with lang="" reserved for the human language.

See this for more details:
   http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-code-element

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 14 April 2010 19:17:25 GMT

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