On Mon, Jan 24, 2011 at 8:47 PM, Chris F.A. Johnson
<ch...@cfajohnson.com> wrote:
> On Mon, 24 Jan 2011, Christian Snodgrass wrote:
>> Now, if you use the new code element instead, that tells the browser it is
>> code.
>
>   There's a new code element? How does it differ from the old one?

Without using additional attributes, I don't see much difference in the specs:

HTML4:
<http://www.w3.org/TR/html401/struct/text.html#h-9.2.1>

"Designates a fragment of computer code."

------

HTML5:
<http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element>

"The code element represents a fragment of computer code. This could
be an XML element name, a filename, a computer program, or any other
string that a computer would recognize.

Although there is no formal way to indicate the language of computer
code being marked up, authors who wish to mark code elements with the
language used, e.g. so that syntax highlighting scripts can use the
right rules, may do so by adding a class prefixed with "language-" to
the element."

-- 
  Scott Elcomb
  http://www.psema4.com/   @psema4

  Member of the Pirate Party of Canada
  http://www.pirateparty.ca/


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to