How to input titles so they show on the DVD

When I place a CD or DVD on my television I can see that it is divided into a number of different chapters with either titles or just numbers.
I want to build a slide show from about twenty different subjects and I would like to show the different chapters or titles on the DVD when I place it in my DVD player connected to thr television. Could someone point me in the right direction?