CNN  — 

Once a year the town of Ascot transforms into a global stage for flamboyant hats, fascinators, and horse racing.

The Royal Ascot, attended for the first time this year by the Duchess of Sussex, began in 1711 and attracts around 300,000 racegoers each year. The tradition of wearing brightly colored and daring hats has since become one of its main attractions.

- Source: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/180502180928-colin-mcdowell-what-to-wear-to-the-royal-wedding.jpg?q=x_0,y_51,h_839,w_1492,c_crop/h_540,w_960" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/180502180928-colin-mcdowell-what-to-wear-to-the-royal-wedding.jpg?q=x_0,y_51,h_839,w_1492,c_crop/h_540,w_960" } }" data-vr-video="false" data-show-html="" data-byline-html="
" data-timestamp-html="" data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2018-05-03T09:25:51Z" data-video-section="style" data-canonical-url="https://www.cnn.com/videos/fashion/2018/05/02/colin-mcdowell-what-to-wear-to-a-royal-wedding-style-orig.cnn" data-branding-key="style-royal-wedding" data-video-slug="colin-mcdowell-what-to-wear-to-a-royal-wedding-style-orig" data-first-publish-slug="colin-mcdowell-what-to-wear-to-a-royal-wedding-style-orig" data-video-tags="arts and entertainment,british royal family,celebrities,fashion design,meghan markle,prince harry,royal wedding of prince harry and meghan markle,society,weddings and engagements" data-details="">
The Princess Is Wearing A Wedding Dress Designed By David And Elizabeth Emanuel.
Royal wedding dress code: Here's what to wear
02:29 - Source: CNN

For design expert and cultural commentator Stephen Bayley, “Snobbery is the science of analyzing visual and aural data to determine class. And the British have raised this mere science to a high art form. Take hats, especially the fantastical display headwear at Royal Ascot or a royal wedding. Every nuance of style, shape, color betrays the ambitions and status of its wearer. It may be a pretty scene, but it’s also cruelly revealing.”

Click through the gallery above to see some of the most striking hats on show.