Hogwarts is the primary setting for the first five books in the Harry Potter series.
Hogwarts School of Witchcraft and Wizardry , shortened Hogwarts , is a fictional British school of magic for students aged eleven to eighteen , and is the primary setting for the first six books in J.K. Rowling 's Harry Potter series .