Science fiction predicts or supposes technologies that are not realities at the time of the work’s creation: Jules Verne’s novel From the Earth to the Moon was published in 1865 and only in 1969 did astronaut Neil Armstrong first land on the moon.
Historical fiction places imaginary characters into real historical events. In the early historical novel Waverley, Sir Walter Scott’s fictional character Edward Waverley meets a figure from history, Bonnie Prince Charlie, and takes part in the Battle of Prestonpans.
Fictional works that explicitly involve supernatural, magical, or scientifically impossible elements are often classified under the genre of fantasy, including Lewis Carroll’s Alice in Wonderland, J.K. Rowling’s Harry Potter series, and J.R.R. Tolkien’s The Lord of the Rings. Creators of fantasy sometimes introduce imaginary creatures and beings such as dragons and fairies.