Computer hardware refers to the physical parts of a computer and includes components like the processor, memory, storage, and input/output devices. It differs from software which are programs that run on the hardware. Common types of hardware include motherboards, RAM, hard disks, CD/DVD drives, flash memory, ports, and peripherals like monitors, keyboards, and printers. Hardware is necessary to store and process the data and instructions of software.