Rules in four lines
Every tile slides as far as it can in the direction you choose. Two tiles with the same number merge into one tile of double the value, and the merged tile cannot merge again in the same move. After each move a new 2 or 4 appears in an empty square. The game ends when the board is full and no two neighbours match; reaching 2048 is the win, but you can keep going for a higher tile.
The strategy that actually works
Choose a corner and never move your largest tile out of it. Then build a descending chain away from that corner — 512, 256, 128, 64 along a row or a snake — so the small tiles are always ready to feed the big one. Restricting yourself to two directions is the single biggest improvement most players can make: if your big tile sits bottom-right, mostly press left and down, and only go up or right when the board forces you.
Never fill the row under your largest tile with small tiles you do not need. That row is the corridor the big tile travels along, and blocking it is how a good board dies. When the board is tight, merge the smallest pair rather than the most convenient one: the score is a by-product of surviving, not the goal.
Why 5×5 plays differently
The 5×5 board is not just 2048 with more room. The extra line makes it much easier to keep a descending snake intact, so strong players reach 4096 and 8192 far more often, and the score climbs faster per move. It also changes the opening: on 4×4 you are often forced to break your pattern within the first twenty moves, while on 5×5 the first hundred moves can be played almost on autopilot. Because the two boards produce incomparable scores, each keeps its own best here.
Controls
Arrow keys or W A S D on a keyboard, a swipe anywhere on the board on a phone, and the board itself is focusable so the page scrolls normally until you press an arrow. The move counter is there for a reason: a game that ends at 300 moves usually died at 120, and the difference is almost always a broken corner.