Can the school require my child to attend X period?

Middle school teachers and staff strongly encourage students to attend X period. However, we cannot mandate attendance.