Did you know…
Why do planes float?
Short answer
An airplane doesn't float like a balloon: it's far heavier than the air it displaces. It stays up because the wings, moving forward, deflect air downward and get an equal upward force in return, lift, which balances its weight; if it stops, it falls. It can float briefly on water because the fuselage is nearly airtight, as shown by the A320 that landed on the Hudson in 2009.

Floating and flying are not the same thing
A hot-air balloon or an airship genuinely floats: it contains a gas less dense than the surrounding air, so Archimedes' buoyant force exceeds its weight. An airplane is the opposite, a machine heavier than air. A single-aisle jet at takeoff weighs around 70-80 tonnes, while the air occupying its volume weighs only a few dozen kilos. Nothing holds it up through buoyancy. What happens is that it stays up through constant work: the engines push it forward and the wings convert that speed into a vertical force. As soon as the airspeed disappears, so does the lift, and the aircraft descends. The feeling that it is floating, in cruise, comes from the absence of nearby visual references at that altitude and from the stability of the flight, but the wing is working at every moment.
Where lift comes from
The wing is a curved airfoil that moves forward at a slight angle relative to the airflow. The air around it curves and flows downward off the trailing edge; according to Newton's third law, if the wing pushes air down, the air pushes the wing up. Seen from the pressure side, air accelerates over the upper surface and pressure drops, while beneath the lower surface it increases: the difference, integrated over the whole surface, is lift. Both descriptions are the same physics. What is not correct is the popular explanation that the air above must reach the trailing edge at the same time as the air below; in fact it arrives earlier. Lift grows with the square of speed, with air density, with wing area and with angle of attack, until the flow separates and the wing stalls.
A balance that must be maintained
In level flight, lift equals weight and thrust equals drag. If pilots want to climb, they increase power or angle of attack; if they want to descend, they reduce one or the other. An aircraft without engines does not fall like a stone either: it glides, trading altitude for speed, and an airliner can cover 15-20 km horizontally for every 1,000 m of altitude lost. That is why gliders fly for hours without an engine, seeking rising air. What an airplane does, in short, is fall very slowly forward while the engines compensate for the energy loss.
When floating means on water
The other reading of the question also has an answer. Land aircraft are not designed to land on water, but the pressurized fuselage is an almost airtight tube, and the wings contain tanks that, empty or nearly so, add volume. Certification regulations require analyzing behavior in an emergency water landing and providing exits and rafts. In January 2009, a US Airways Airbus A320 with no thrust in either engine landed on the Hudson River and stayed afloat long enough to evacuate all its occupants. Seaplanes and amphibians, with floats or a boat-shaped hull, are indeed built to float and take off from water routinely.
More questions

Physics of flight
Why can't a Corsair pilot apply full power when going around after a failed carrier landing?
Because at low speed and high power the Corsair would drop its left wing suddenly and with almost no warning, due to propeller torque. If the throttle was… more…

Physics of flight
What did the phrase "banking with intent to turn" mean among F-104 pilots?
It was a joke among Canadian F-104 pilots: banking the aircraft "with intent to turn" referred to its poor low-speed turning. Its sustained turn capability… more…

Julian Herzog (Website) (CC BY), vía commons Physics of flight
What is "flight envelope protection," which the A320 pioneered?
A set of limits embedded in the flight control software: it calculates the flight envelope, adds a safety margin, and blocks pilot inputs that would take the… more…

Julian Herzog (Website) (CC BY), vía commons Physics of flight
What is the A320's SHARP package for?
SHARP (SHort AiRfield Package) improves takeoff and landing performance on short runways and is designed to increase low-speed lift. It combines aerodynamic… more…

Physics of flight
What flaw sank Vought's all-metal V-141 fighter?
It wasn't a single flaw: tests showed the V-141 still flew poorly, was prone to spinning, and also suffered tail flutter, which is why it was rejected. It… more…

Physics of flight
What wind tunnel did NACA use to study the Corsair, and how big was it?
The full-scale 30- by 60-Foot Tunnel at the Langley Research Center, in Hampton, Virginia. NACA dedicated the facility on 27 May 1931 and used it to test the… more…