After you've signed up for your affiliate or PayPal account (see Monetizing your website), go to the page that provides banner and link code and copy the link code they provide. If you're adding PayPal buttons, click on the Merchant Services tab and then click on the "Create payment buttons for your website" button.
Fill in any information they request (for example, in PayPal, they'll want a name for the button and a price.)
Cut and paste the code they provide.
Open the web page you want to add the code to. If you're working with an online editor, click the tab to switch to HTML. If you're working with your own web design program, you should be able to toggle views between WYSIWYG and HTML. In your editor, find the text on your page where you want the ad to appear, ignoring all the gobbledygook, and paste in the code you've just cut and pasted..
If you want the code centered on the page, add the following before the code you're pasting in:
and this after it:
- Save and publish your website page and you're good to go.