the Google maps API generates HTML to display the map on the fly using Javascript.
The W3C validation service is complaining about the map components that created by the API.
The code generated by the Google Map API needs to be cross browser compliant.
It is near impossible to generate cross browser compliant code that is also standards compliant.