Two teenagers have been charged with the murder of Khayri McLean, who was stabbed outside his school gates in Huddersfield.
The boys, aged 15 and 16, are both from the town and have also been charged with possession of a bladed article.
They have been remanded in custody to appear before Leeds magistrates on Monday.
Khayri, who was 15, died in hospital after an attack near the entrance of North Huddersfield Trust School in Woodhouse Hill at 2.45pm on Wednesday.
Floral tributes were left at the scene on Friday.
West Yorkshire Police said: "Detectives investigating the death of a 15-year-old boy in Huddersfield have charged two males with murder.
"Both males, who are 15 and 16 and from Huddersfield, have also been charged with possession of a bladed article."
In a statement, the school's headteacher Andrew Fell described Khayri as a "wonderful student" who was "loved" by his friends and family.
A GoFundMe page has since been set up to give the teenager "the best send off".