The teenager, who cannot be named for legal reasons, was arrested after supply teacher Vincent Uzomah, 50 was attacked at Dixons Kings Academy in Bradford on Thursday.
Mr Uzomah was stabbed in the stomach with a knife but is stable in hospital.
The boy appeared at Bradford Magistrates' Court and spoke only to confirm his name and address.
He is also charged with possession of cannabis.
The teenager was remanded in custody and will appear at Bradford Crown Court on 29 June.
A 14-year-old boy has appeared in court charged with the attempted murder of his teacher.