A fork is one piece attacking two targets at the same time. You can move one of them, but not both, so the other is lost. Allowing a fork means your move created that chance: you put two pieces on squares that one enemy piece can hit together, or you left a square open from which an enemy piece could reach both.
Knights are the most famous forking pieces because their jumps are hard to picture. A knight on c7 can hit a king on e8 and a rook on a8; a knight on f7 can hit a queen on d8 and a rook on h8. Queens fork constantly too, especially with a check, since the check must be answered and the second target falls next move. Pawns fork two pieces standing side by side one rank ahead of them, and even a king can fork two loose pieces in an endgame.
The pattern that leads to most forks is two valuable pieces on squares that are a knight’s move apart from the same point, or on the same line from one point for a queen. The king is involved more often than not, because a check is the most forcing way to start a fork. That is why forks so often follow an earlier mistake such as a weak square near your king or a piece left without a defender.
Avoiding forks starts with the enemy knights. For each one, picture the squares it can reach next move, then ask whether any of those squares attacks two of your pieces, or your king and one piece. Do the same for the enemy queen with checks: where can she give check, and what else does she hit from there? This is the check that most players skip, and it is the one that catches most forks.
Loose pieces make forks deadly. If both targets of a fork are defended, the fork may only trade pieces. If one target is undefended, or is the king, the fork wins material. So the second habit is simple: keep your pieces defended, especially pieces that stand near your king or on the same rank as it.
Forks also arrive after a capture. You take a pawn, your piece lands on a new square, and from there it forms a fork target with something else. Before you capture, look at where your piece will stand and what the enemy can attack it together with.
ChessTensai flags an allowed fork when the engine’s refutation of your move is a fork. If this is high on your list, fork puzzles help on both sides of the board: the more forks you find for yourself, the sooner you see the ones your opponent is about to play.