Derek P. Collins

About

This is the personal blog of Derek P. Collins—a web developer working for KISSmetrics. Read more »

Follow

  • Twitter
  • Facebook

Work

  • KISSmetrics
  • KISSinsights

HTML 5 Reference : 3.2.3 Attributes

dropshadows:

There are four slightly different syntaxes that may be used for attributes in HTML: empty, unquoted, single-quoted and double-quoted.

This can be useful for escaping quotes in attributes, as seen in this example from the recent jQuery 1.4.3 release notes:

<div data-options='{"name":"John"}'></div>

1 year ago ♥ 4

© 2010 Derek P. Collins