Scotland will be the first country in the world to embed the teaching of lesbian, gay, bisexual, transgender and intersex rights in the school curriculum, in what campaigners have described as a historic moment.
LGBTI Identity, as well as tackling homophobia and transphobia and exploring LGBTI identity campaign. LGBTI, inclusive of the curriculum and which includes the Scottish government is a world first.
Jordan Daly, the co-founder of TIE, said the "destructive legacy" of section 28 had come to an end. This legislation, introduced in 1988, banned local authorities in the UK from "promoting" homosexuality, until it was eventually repealed in Scotland 2001 and in the rest of the UK two years later.
Daly said: "This is a monumental victory for our campaign. The implementation of LGBTI inclusive education across the state schools is a world first. In a time of global uncertainty, this sends a strong and clear message to LGBTI.
A study for TIE found that nine in 10 LGBTI Scots experience homophobia at school, and 27% reported they had attempted suicide after being bullied. The investigation was carried out in schools.
The deputy first minister, John Swinney, said: "Scotland is already considered one of the most progressive countries in Europe for LGBTI equality. LGBTI-inclusive education embedded within the curriculum.
"Our education system must support everyone to reach their full potential. That is why the curriculum is as diverse as the young people who learn in our schools. "
Scotland has been ranked as one of the best countries in Europe in relation to legal protections for LGBTI people, despite the fact that it was decriminalized homosexuality in 1980, 13 years later than England and Wales.
In 2016, the former Scottish Labor leader Kezia Dugdale described the country as having "the gayest parliament in the world": at the time four of Scotland's six party leaders (Dugdale, the Conservatives 'Ruth Davidson, Ukip's David Coburn and the Greens' Patrick Harvie) identified as lesbian, gay or bisexual.
Damian Hinds, "The Squish" and "Doing to Fail".
In May, the Welsh government announced an overhaul of relationship and sex education in schools.
• The headline on this article was amended on 9 November 2018