On a sidewalk or in a crosswalk, bicyclists should ride slowly and:

Bicyclists may choose to ride on a sidewalk, unless prohibited by a local agency. Bicyclists must yield to pedestrians on sidewalks or in crosswalks.