There are two kinds. On full flights, staff take bags from the later boarding groups and tag them for the hold, usually through to the final destination like any checked bag. On small aircraft, bags left at the aircraft door are often handed back at the door or on the air bridge after landing. The tag says which; ask if it isn't clear.
Before handing it over, take out anything that shouldn't travel in the hold: spare lithium batteries and power banks, which must stay in the cabin with you (the US FAA spells this out for gate-checked bags), along with medication, passports and other documents, keys, valuables and anything fragile.
A bag that was within the cabin allowance is normally gate-checked free. A bag that's bigger than the fare allows is another matter: some airlines, low-cost ones especially, charge at the gate, so check the price of adding a bag in advance before deciding to chance it. Many airlines let parents take a pushchair to the gate and check it there, often free; see the airline's family policy.
Gate check · LHR → EDI · Collect at aircraft door
Where you'll find it
A tag attached at the gate shows the destination or says to collect the bag at the aircraft door; the stub is often stuck to the boarding pass.