The term LGBT or LGBTQ was adopted in the 1990s and refers to lesbian, gay, bisexual, and transgender (and queer or questioning) people. However, the term is not without contention with some groups, such as those who are intersex, who want to be included, and others who don’t want to be included.
Prior to that, the term “gay” was often used as a shorthand to refer to the entire spectrum of the LGBTQ community.
To find out more about the history of the LGBTQ initialism, click here:
https://medium.com/queer-history-for-the-people/a-brief-history-of-the-lgbtq-initialism-e89db1cf06e3