Yes, online school is legal in India as the government recognizes each child’s “Right to Education” act. The Indian Judicial System sets homeschooling and online schools free from violating any section or provision under the RTE 2009, hence, online school is legal in India.