W3Schools has explained it very well with an example that will help you draft the code easily: https://www.w3schools.com/html/html_googlemaps.asp
I am sure you will need the Google guidelines too: https://support.google.com/maps/answer/144361?co=GENIE.Platform%3DDesktop&hl=en