Look at a tablet. The glass screen, the battery, the buttons, the speakers and the chips inside are hardware. You can hold them, drop them and break them. Now open a drawing app. The app is software: a long list of instructions that tells the hardware what to do, like 'when a finger touches here, draw a blue dot there'. You cannot touch the instructions. You can only see what they make the hardware do.
Each needs the other. A tablet with no software is a dark piece of glass. A drawing app with no tablet is a list of instructions with nothing to follow them. The same hardware can do very different jobs with different software: one tablet can be a camera, a book or a piano, just by opening a different app.
Some things look like hardware but are really software. The program built into a TV remote or a game controller is called firmware. It lives on a chip inside the device, so it feels like part of the machine, but it is still instructions, and it can sometimes be updated. Here is a good test: if it could be sent over the internet as a file, it is software. A charger cannot be sent as a file, so it is hardware.
Think of it like this. Hardware and software are like a piano and its sheet music. The piano is the part you can touch; the music tells it what to play. Without music the piano stays silent, and music with no piano makes no sound. The comparison stops at who plays: a piano needs a person, but a computer follows its instructions by itself.
Core idea. Hardware and software are interdependent — hardware provides capability, software provides purpose.