Use Data Attributes on Elements in HTML5 to Store Data December 6, 2017 We can store data in the elements through HTML5’s data attributes. See below for an example on how to store and retrieve data from the data attributes. The values are