Skip to content

Instantly share code, notes, and snippets.

@oddlyzen
Created June 28, 2011 22:59
Show Gist options
  • Select an option

  • Save oddlyzen/1052460 to your computer and use it in GitHub Desktop.

Select an option

Save oddlyzen/1052460 to your computer and use it in GitHub Desktop.
Custom 'data-' attributes in HTML5
<li class="user" data-name="John Resig" data-city="Boston"
data-lang="js" data-food="Bacon">
<b>John says:</b> <span>Hello, how are you?</span>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment