In Chapter 5, I mentioned data attributes when going over the three types of HTML element attributes. Look no further for complete coverage of anything and everything related to connecting data of any kind to your document elements. All the details are in this chapter, which will also build on the general attribute and element properties from Chapter 5. JavaScript objects will be introduced briefly as well, during a demonstration on connecting non-trivial data structures to tags.
As you continue through this chapter, expect to understand why connecting data to your document elements ...