In almost all countries, children are required by law to attend school.