Skip to content
Tuto HTML logo
Tuto HTML (2022-10-25 16H (Europe/Paris)) Using data attributes
Type to start searching
Tuto HTML
  • Index
  • HTML Living Standard
  • Mozilla HTML (MDN)
  • Wikipedia HTML5
  • htmx
  • Tuto devops
  • Howto
Tuto HTML
  • HTML definition
  • Web APIs + Web Interfaces
  • HTML global attributes
  • HTML element
  • Howto
    • Using data attributes
      • Show Source
  • HTML inline elements
  • HTML tips
  • HTML Tools
  • HTML evolution
  • HTML Glossary
  • HTML5 versions => However, as a Living Standard, HTML, now , has no version
  • Meta
  • Show Source

Using data attributes ¶

  • https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes

  • https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/data-*

HTML is designed with extensibility in mind for data that should be associated with a particular element but need not have any defined meaning.

data-* attributes allow us to store extra information on standard, semantic HTML elements without other hacks such as non-standard attributes, or extra properties on DOM.

Previous Howto
Next HTML inline elements
© Copyright 2018-2022, DevOps people Built with sphinx 5.1.1 Python 3.11.0.
Last updated on Oct 25, 2022.
Created using Sphinx 5.1.1. and Material for Sphinx