Use Windows to build a bootable USB installer on Mac - You first need to format your hard drive before installing El Capitan on Mac. And you can set up OS X El Capitan on PC or build a USB bootable on Windows on Mac before you go this move forward.
Boot it with your bootable USB installer - You can now plug into your PC your bootable USB installer and install Mac OS X The Capitan on it, then click the button boot Menu (F12, F10, F8, F2), depending on your device and then pick the bootable USB Boot Installer and hit Google Search.
Boot the boot flag of your machine - Now pick "hd (0.2) (10.11) El Pwn" and move on with the hit. Use some boot flags to boot when not booting directly.
For Mac OS X El Capitan, pick your language - After booting now with the boot flag successfully. You can then pick the language page of USB installer, and then pick your language for El Capitan.
Create disk utility partition for El Capitan - You’ll have to divide El Capitan's disk here. Tap on Providers > Disk Utility now. Now pick a free empty partition, or build a new partition. Type El Capitan's Disk Name, pick "OS X Extended" file and tap the delete button.
On Generated Partition in Phase Install OS X El Capitan - Then press Continue > Accept after building an OS X extended partition for Mac OS X El Capitan. Select and click the Continue partition you generated in step 5. Then the USB installer will automatically resume running after 10 seconds or manually install OS X El Capitan on a disk partition you have built-in phase.
Configure your Mac OS X El Capitan on a PC in a clean way - Go to Boot Manager, boot and unplug or uninstall bootable USB from your PC from the USB installer. Then you pick and hit the OS X Extended partition you built in step 5. Follow the below article to cleanly install or set up Mac OS X El Capitan on a PC.