This study aims at exploring the effectiveness of using an online-based course on the learning of sentence types inductively and deductively. To achieve this purpose, a computer-mediated course was designed. The sample of the study consists of four groups taught under four treatments of grammar: (1) with computer-based learning inductively, (2) with computer-based learning deductively, (3) with non-computer-based learning inductively, and (4) with non-computer-based learning deductively. A pre-test/post-test design (between-subject) is used to investigate the effect of two factors: method (computer-based learning vs. non-computer-based learning) and technique (induction vs. deduction) on the students’ learning of sentence types. The results reveal a new manner of enhancing grammar learning based on the level of language structure complexity. The computer-based learning method is found to be functional for more complex and elaborate structures, like the complex sentence and compound complex sentence, and more complicated grammar structures need to be taught by means of the deductive technique. None of the inductive and deductive techniques is reported to be more practical with simple grammar structures such as the simple sentence and compound sentence.