I'm a little confused by the different ways hats and accessories connect to the Pi. I've done a lot of googling, but there is a 'chicken & egg' problem of not knowing the right words/jargon to google!
Observations/questions...
1. The GPIO "pins" (the "header"?) protrude upwards from the Pi board;
2. Some hats have the corresponding part that I'd expect on the underside - don't know the name for this? - a female plastic part, where each GPIO pin goes into a corresponding hole. E.g. https://www.aliexpress.com/item/32961967517.html This makes sense!
3. Some hats have both the female plastic part on the underside and pins (pointing upwards). E.g. https://www.amazon.de/gp/product/B07T35X4P4/ What are the pins for on top? Because I read in several places that you can't generally 'stack' hats.
4. Some accessories (like cameras) seem to come with a ribbon cable, but seemingly no 'plastic thingy' at the Pi end to interface with the GPIO header. E.g. https://www.raspberrypi.org/products/pi-noir-camera-v2/ Do you need to buy your own 'thingy' to connect the ribbon to the Pi? From looking at lots of these things on Amazon, often the 'thingy' is depicted in illustrations of the fully assembled Pi+hat, but not indicated in the parts list for the hat.
If I'm misusing some of the terms ('header' etc) please correct me!
Sorry for the web links on my first post, hope that's not against forum policy.