Categories HTML How to store arbitrary data for some HTML tags? Post author By John Au-Yeung Post date September 3, 2022 No Comments on How to store arbitrary data for some HTML tags? Spread the love To store arbitrary data for some HTML tags, we put the data in the data- attributes. For instance, we write <div data-internalid="123"></div> to set the data-internal attribute of the div to 123. Related Posts HTML5 Tags ListHTML5 introduced many new tags. The HTML5 tags list is below: Structural Tags Structural tags… How to remove HTML tags in JavaScript with regex?Sometimes, we want to remove HTML tags in JavaScript with regex. In this article, we'll… How to Remove HTML Tags in JavaScript with Regex?We can use the string’s replace instance method to remove the tags from an HTML… By John Au-Yeung Web developer specializing in React, Vue, and front end development. View Archive → ← How to use HTML5/JavaScript to generate and save a file? → How to stop event propagation with inline onclick attribute with JavaScript? Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Current ye@r * Leave this field empty