<body> <div id = "id_name" data-tagName = "value" data-tagName1 = "value"> Display Data </div> <script> const variable_name = document.getElementById('id_name'); console.log(variable_name.dataset); </script> </body>