Kathryn S's answer is right, though I would note that the term "slash chord" is very much a term used in popular music and jazz. it can go beyond simply meaning an inversion of a chord. For instance, B/C would indicate a B major chord with C natural in the bass. C is not part of the B major chord, so doesn't really function as an inversion of the chord. (Whether or not you *like* the sound of that combination is another matter, of course.)
How do I use slash chords in music composition?
2 Answers By Expert Tutors

Kathryn S. answered 07/08/19
Patient Special Needs and Math Tutor
There is no such thing as a "slash chord" but I'm assuming you mean chords notated like C/G and D/F#. This notation means that the chord has a different bass note than its root, and the bass note is after the slash. Using a different bass note is called inversion. 1st inversion chords use the second note from the root (for the C chord, for example, this is E) as the bass. 2nd inversion chords use the third note, and 3rd inversions use the fourth, if there are four notes, such as in a seventh chord. C/G is a second inversion chord because the third chord tone is used (C-E-G are the tones in the C chord)
In contemporary music, you can use this in your composition when you want to smooth out your bass line, so it's not full of wild leaps. You can also use an inverted chord to weaken a chord that has a strong pull to another, like C has to G. In fact, changing C to C/G means that, in a progression including C and G, the bass line does not move when you go to the G chord! You can have some fun with this concept.
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.