In day to day life, we use straight through cable for connecting our computer to home router. Some time, we need to connect two computers directly for copying huge files. For this, we use cross-over cable.
An Ethernet crossover cable is used to connect two devices of the same type: e.g. two computers (via network interface controller) or two switches to each other. By contrast, patch cables or straight through cables are used to connect devices of different types, such as a computer to a router (or network switch or hub).
Straight-through is type of wiring that is one to to one connection Cross- over is type of wiring which those wires are got switched.
Below image shows ends of cross-over cable.
Below image shows ends of straight through cable
Below image shows crossover cable wiring
Below image shows straight through cable wiring
https://en.wikipedia.org/wiki/Ethernet_crossover_cable
https://www.computercablestore.com/straight-through-crossover-and-rollover-wiring