From the 1840s to the 1870s, baseball players wore many kinds of hats, such as straw hats. Caps, or other kinds of headgear with eye shades that protect a player's eyes from the sun, have been a part of baseball uniforms since they were first created. In 1860, the Brooklyn Excelsiors were the first team to wear what would later become the baseball cap. Before that, teams often wore full-brimmed straw hats or no cap at all since there was no official rule in baseball about whether players had to wear caps or not. By the early 1900s, rounded top parts of a hat became the normal fashion. Other teams would sometimes use the flat-topped cap, such as the Giants in 1916, and the Pittsburgh Pirates in their 1979 World Series championship. Baseball caps have changed very little in recent decades. Over time, a bigger sun visor (the front of caps) has been made. The reason of the cap stays the same: to protect the player's eyes from the sun.