For further actions, you may consider blocking this person and/or reporting abuse
Read next
Top Online Coding Courses for Beginners and Experienced Developers
lorenz1989 -
What is PixsDev, what services PixsDev provide, and why it is the best company to build your software at an affordable price?
Rahul Nikam -
A Guide to Become an expert Python programmer in 2023
Akash Jangra -
major update!
sheila -
Top comments (1)
Definitionally:
data-
attributes don't do much, but they are the standard place one might put data that could accompany an element.When information is sent from the server, we might store some data on a root
div
and then with a JavaScript framework like React, render that div on the client and seek something likedata-rows
to find out what information should be in the rows in a list within the element. This is one of many ways we might pass data in, we might do it via afetch
request to the server, but when we get the data we may want somewhere in the HTML to store it.data-
is there to be that place.