Go ahead and install the OS. At the end of the installation it will ask you whether you want to activate now and it will also tell you that it has detected an internet connection. If you are ready to activate, select "Yes" and then you will be in the activation menu. Enter the activation code and that's all there is to it. Make sure that you enter the correct numbers and letters as some of them are hard to read.
Go ahead and install the OS. At the end of the installation it will ask you whether you want to activate now and it will also tell you that it has detected an internet connection. If you are ready to activate, select "Yes" and then you will be in the activation menu. Enter the activation code and that's all there is to it. Make sure that you enter the correct numbers and letters as some of them are hard to read.
Also most likely if you're reinstalling from the recovery partition (if your computer has one) it won't even need reactivating. It'll still just show as Activated.