Apple trees belong to the kingdom plantae, the phylum angiosperms (sometimes referred to as magnoliophyta) and the family rosaceae.
The kingdom plantae includes other plants, like apples trees, that also flower; conifer trees (larches, yews, spruces, pines, etc.) along with many types of mosses, worts and algae.
Angiosperms are classified as plantae that flower and seed, that is, the seed of the plant is contained within the fruit produced by the tree; in this case, the apple pips held within the core of the apple.
The subdivision rosaceae are the medium-sized flowering plants which have five petals to their leaf, fused at the base. They also have specific forms of structural arrangement within the stamen. This subdivision includes many other fruit trees (peaches, apricots, strawberries, raspberries), but also almonds and, as the names suggests, roses.
The Full Scientific Classification of the Apple Tree:
Domain: Eukarya; Kingdom: Plantae; Phylum: Angiosperm (or Magnoliophyta); Class: Magnoliopsida; Order: Rosales; Family: Rosaceae; Genus: Malus; Species: Malus domestica.
To learn more about the classification of living things, watch this short film: