The ID of an HTML tag has no relationship to the data contained within the element. IDs are used to reference the HTML element by JavaScript and CSS.
The name attribute is used when sending data in a form submission when an HTTP request is sent by your browser to the server.