$.data() and $.attr() are very common functions we use daily. HTML5 introduces data-*
attributes on DOM elemnts to store extra information.
####Data attributes defined inline on DOM element.
As you seen above, both data() and attr() can set and get the name
on div1.
####Data attributes defined using JS.
If you use data() to set data-* attribute on node, the actual value won’t be changed later by using attr().