The basic principle if you are using Electrum is as follows. You have two computers, one with an internet connection, and another airgapped computer which does not and will never have an internet connection. On the airgapped computer, you create a wallet and back up the seed phrase on paper. This wallet will contain your private keys. From that wallet you export the addresses or the master public key, but never the private keys or the seed phrase. You move these addresses to your online computer, either through a USB drive, or via displaying QR codes on your airgapped computer and scanning them with a camera attached to your online computer.
So now you have a wallet on your online computer which contains only addresses, and no private keys. This is called a watch only wallet. It will monitor your addresses for balance and incoming transactions, but it will be unable to spend any coins (and therefore completely resistant to being hacked) since it does not contain any private keys. When you want to make a transaction, you use this online watch only wallet to create the transaction you want to make, and then save the transaction. You then transfer this unsigned transaction over to your airgapped computer (again either via a clean USB drive or QR codes), sign it on your airgapped computer with the private keys which are safely stored offline, and then transfer the now signed transaction back to your online computer to be broadcast to the network.