Région de recherche :

Date :

https://developer.mozilla.org › fr › docs › Learn › HTML › Howto › Use_data_attributes

Utiliser les attributs de données - Apprendre le développement web - MDN

Les attributs data-* nous permettent de stocker des informations supplémentaires sur les éléments sémantiques standard sans avoir recours à des attributs non-standard ni à des propriétés supplémentaires du DOM, ni à Node.setUserData().

https://www.w3schools.com › TAGS › att_data-.asp

HTML data-* Attribute - W3Schools

Learn how to use the data-* attribute to store custom data on any HTML element. The data-* attribute can be used to enhance the user experience with JavaScript without Ajax or server calls.

https://developer.mozilla.org › fr › docs › Web › HTML › Global_attributes › data-*

data-* - HTML (HyperText Markup Language) | MDN - MDN Web Docs

data-*. Les attributs universels data-* forment une classe d'attributs, appelés attributs de données (data attributes). Ils permettent d'échanger des données propriétaire entre le HTML et la représentation du DOM, qu'on peut manipuler avec des scripts.

https://laconsole.dev › formations › html › attribut-data

Apprendre HTML : Attribut de Données data-* - laConsole

En résumé, l’attribut HTML “data-*” est un moyen pratique de stocker des informations supplémentaires dans les éléments HTML. Il vous permet de créer vos propres attributs personnalisés et de manipuler ces données à l’aide de JavaScript ou de les cibler avec des sélecteurs CSS.

https://la-cascade.io › articles › data-attributes-guide-complet

Data attributes, guide complet - La Cascade

Le concept est que vous pouvez utiliser les data attributes pour mettre dans le HTML des informations auxquelles JavaScript peut avoir besoin d'accéder pour faire certaines choses. Un cas courant serait lié à la fonctionnalité de la base de données.

http://devdoc.net › web › developer.mozilla.org › en-US › docs › Web › HTML › Global_attributes › data-*.html

data-* - HTML | MDN

The data-* global attributes form a class of attributes called custom data attributes, that allow proprietary information to be exchanged between the HTML and its DOM representation by scripts. All such custom data are available via the HTMLElement interface of the element the attribute is set on.

https://www.w3schools.com › TAgs › tag_data.asp

HTML <data> Tag - W3Schools

Learn how to use the HTML data tag to add a machine-readable translation of a given content. See an example, browser support, attributes and global attributes of this element.

https://dev.to › dev-harbiola › custom-data-attributes-in-html-a-guide-to-data--373

Custom Data Attributes in HTML: A Guide to `data-*`

Learn how to use data-* attributes to add custom data to HTML elements that can be accessed and manipulated by JavaScript or CSS. See examples, naming conventions, and common use cases for data-* attributes.

Custom Data Attributes in HTML: A Guide to `data-*`

https://fr.w3docs.com › apprendre-html › html-tag-data.html

Tag HTML <data> - W3docs

Qu'est-ce que la balise HTML <data> fait et pourquoi est-elle utilisée ? Elle est utilisée pour stocker les données du formulaire. La balise <data> donne la capacité de lier des données machinables à du contenu pour un usage humain.

Tag HTML <data> - W3docs

https://css-tricks.com › a-complete-guide-to-data-attribute

HTML Data Attributes Guide - CSS-Tricks

Learn how to use data attributes to store custom data in HTML elements and access it with CSS and JavaScript. Data attributes are prefixed with data-* and can be styled, selected, and manipulated with various methods.

HTML Data Attributes Guide - CSS-Tricks