In the English-speaking world this name is more commonly given to girls. This is due to the American actress Alexis Smith (1921-1993), who began appearing in movies in the early 1940s. It got a boost in popularity in the 1980s from a character on the soap opera Dynasty.
As a given name, it was used on the American sitcom Murphy Brown (1988-1998) for both the mother and son of the main character. By 1998 it was more popular as a name for girls in the United States, perhaps further inspired by a character from the movie Jerry Maguire (1996).
As an English name, Hannah was not regularly used until after the Protestant Reformation, unlike the vernacular forms Anne and Ann and the Latin form Anna, which were used from the late Middle Ages. In the last half of the 20th century Hannah surged in popularity and neared the top of the name rankings for both the United States and the United Kingdom.
Before 1980, this was an uncommon masculine name in America. During the 1980s and 90s this name steadily increased in popularity for both boys and girls, and from 2003 onwards it has been more common for girls in the United States. Elsewhere in the English-speaking world, such as the United Kingdom and Australia, it has remained largely masculine.
This name was later borne by three other English kings, as well as rulers of Scotland, Sicily (of Norman origin), the Netherlands and Prussia. Other famous bearers include William Wallace, a 13th-century Scottish hero, and William Tell, a legendary 14th-century Swiss hero (called Wilhelm in German, Guillaume in French and Guglielmo in Italian). In the literary world it was borne by dramatist William Shakespeare (1564-1616), poet William Blake (1757-1827), poet William Wordsworth (1770-1850), dramatist William Butler Yeats (1865-1939), author William Faulkner (1897-1962), and author William S. Burroughs (1914-1997).
In the American rankings (since 1880) this name has never been out of the top 20, making it one of the most consistently popular names (although it has never reached the top rank). In modern times its short form, Liam, has periodically been more popular than William itself, in the United Kingdom in the 1990s and the United States in the 2010s.