Azhar Ahmed, wrote on Facebook that "all soldiers should die and go to hell" following the death of six servicemen in Afghanistan. 20-year-old Ahmed, from Ravensthorpe in West Yorkshire said he did not think his comments were offensive.
District Judge Jane Goodwin disagreed, branding his remarks were "derogatory, disrespectful and inflammatory".
He will now do two hundred and forty hours of community service over a two year period and has been fined £300.
More top news
Sir Gary Verity insisted that history was made as the second day of the second Tour de Yorkshire came to a close.
Technical problems with the French TV coverage of TDY Women’s race means it is not being shown on ITV4.
Sheridan Smith won a standing ovation as she returned to the West End stage after claims she was 'drunk' during a performance.