Hi you don't need to add any html. Both google and amazon should have given you affiliate codes. Just go to my account. Click on affiliate settings, paste them in the right boxes and click activate. Job done.
You can help the HubPages community highlight top quality content by ranking this answer up or down.