a dispensing cap is provided for a container and includes a body portion having a formed sliding track thereon . an opening is provided in the body for providing access through the body . a retention slot is formed adjacent the sliding track . a slider is moveably positioned within the sliding track for selectively opening and closing the body opening . a frangible tab is initially formed as part of the slider and engaged within the retention slot to fix the position of the slider within the sliding track . removal of the frangible tab permits the slider to move relative to the body opening . the cap is formed by an injection molding process , in conjunction with an in - mold assembly of the slider .