The Harry Potter series fits generally in both the categories of children's literature and fantasy literature. As children's literature, the books repeat schoolyard themes of friendship, interpersonal conflict, and coming of age.
Also considered fantasy novels, the Harry Potter novels weave magic into the characters' everyday lives. Throughout normal daily activities such as attending classes and eating meals, the students at Hogwarts experience fantastic details such as moving staircases, mischievous ghosts, and levitating candles.
Harry Potter and the Half-Blood Prince