Can someone please explain the role of "id" and "data-template-set" within this tag for HTML5 terms? Thanks.

id distinctively identifies a component. For that head element it will likely simply be used in conjunction with JavaScript.

data-* provides data for JavaScript to gain access to.

They are both pretty simple to answer by searching at the specification.