July Fourth onboard the Aircraft Carrier USS Hornet: Live music, games for all ages, food and beverages. Tours of the aircraft carrier available throughout the day. Fireworks from other events can be viewed on deck. 11 a.m.-10 p.m. 707 W. Hornet Ave., Pier 3, Alameda. $10-$25. 510-521-8488, ext. 282, www.hornetevents.com.
Alameda Fourth of July Parade: One of the longest Independence Day parades in the nation featuring more than 170 floats and 2,500 participants. 10 a.m. Park Street and Lincoln Avenue. www.alamedaparade.com.
Albany Beard & Mustache Contest & July Fourth Celebration: Mustache contest, Baby Race called the Diaper Derby, Vivarium Reptile Show and free ice cream. Also three-legged races, egg toss and sack races. Kids can purchase a Fun Band for $5 for unlimited use of: jump houses, dunk tank, game tent, bungee jump, giant obstacle course and more. Registration cost may apply to enter contests. Noon-4 p.m., Memorial Park, 1331 Portland Ave. www.albanyca.org/index.aspx?page=690.
Berkeley Marina celebrates the Fourth of July: Live entertainment, art and crafts, dragon boat rides. Noon. Fireworks begin at 9:30 p.m. University Ave. Free. 510-548-5335, www.ci.berkeley.ca.us.
The City of El Cerrito WorldOne hosts July Fourth Festival: This family-friendly event is full of fun, food entertainment, carnival games, jump houses and kids rides, El Cerrito Art Association Art Show and Sale, vendor booths and more. No dogs. 10 a.m. to 7 p.m. Cerrito Vista Park, 950 Pomona Ave. (at Moeser Lane). 510-559-7000.
The City of Fremont's Fourth of July Parade: Marching bands, floats, equestrian units, helium balloons, and unique hometown entries; as well as some surprise and out-of-town entries. 10 a.m. The parade loop starts at State Street and Capitol Avenue, then on to Paseo Padre Parkway, Walnut Avenue, Liberty Street, and ends on Beacon Avenue. www.fremont4th.org/about.html.
Old-fashioned Fourth of July at Meek Estate. The Banjo Racketeers will perform, and crafts, face painting, a park-wide History Hunt, sack races and tugs-of-war are planned at the free celebration sponsored by the Hayward Area Historical Society. Those attending can take a picnic, and hot dogs and beverages will be sold. 11 a.m.-3 p.m. The historic estate is at 17365 Boston Road. 510-581-0223 or www.haywardareahistory.org.
Independence Day at Jack London Square: A festival of family fun with interactive activities and performers for both parents and children including a bubble wrangler, jugglers, magicians, Uncle Sam stilt walkers, petting zoo, face painters, balloon artists, hula hoppers, bike rentals, puppet show, craft making, fire engine trucks and performances from the Circus Spire Youth Troupe, tasty treats, drinks, music and much more., 11 a.m.-4 p.m., Jack London at the end of Broadway. Free. www.jacklondonsquare.com.
Alameda County Fair: Daylong Red, White and Blues Festival with performances in the amphitheater, horse racing, animal exhibits, displays, competitions, motorcycle daredevil show and Hot Dog Eating Chili Relay. 10 a.m.-9 p.m. 4501 Pleasanton Avenue. $6-10. Parking $10-$20.
San Francisco Fourth of July Waterfront Celebration: Music and viewing of fireworks display over San Francisco Bay. Noon-9:30 p.m. Fireworks begin at 9:30 p.m. Pier 39, Beach Street and the Embarcadero. Free. 415-705-5500, www.pier39.com.