A.
It shall be unlawful for a parent, guardian, or other person having custody of a child who is over the age of five years, and under the age of 18 years, to neglect or refuse to cause or compel such child to attend and comply with the rules of some public, private or other school, unless other means of education are provided for the full term the schools of the district are in session or the child is excused as provided in this article.
B.
It shall be unlawful for any minor who is over the age of 12 and under the age of 18 years, who has not finished four years of high school work, to neglect or refuse to attend and comply with the rules of some public, private or other school, or receive an education by other means for the full term the schools of the district in which the minor attends are in session.